Questions tagged [Telegram] (1134)

3
answers

How to send messages in the telegram on weekdays at 8 am?

Create samopisnogo bot, tell me how can I check the time and send a message with the bot at 8 am on weekdays? I looked up sleep, but I think that is a crutch. There is also the option to compare a time variable, but I don't understand how you can compare a day of the week and make conditions on sending. Supposedly have to m...
Hershel9 asked April 4th 20 at 14:19
3
answers

How to check values in the database?

There is a table in the database which recorded the user_id and username of the user. How to make so that the user data were recorded 1 time? id_proverka_bd = cur.execute("SELECT user_id FROM users where user_log = '%s'" %user_logg) if id_idd != id_proverka_bd: cur.execute("INSERT INTO users(user_id,user_log) VALUES (%s,...
birdie_OConnell asked April 4th 20 at 14:15
0
answer

How to choose a receiving device of a secret chat?

The sending device is determined by logical: I started the fellowship there and had a chat. But how to choose which device I want to join the chat, in which I add?
Ayana_Pfeff asked April 4th 20 at 14:14
1
answer

How to share files bot?

def get_class(message): if str(message.text) == '11': bot.send_message(message.chat.id,'Upload picture 11') bot.register_next_step_handler(message, get_photo11) elif str(message.text) == '10': bot.send_message(message.chat.id,'Upload a photo 10') bot.register_next_step_handler(message, get_photo10) elif str(message.t...
katharina.Haag asked April 4th 20 at 14:14
1
answer

How to make a proper display of links in the telegrams?

Good afternoon. please tell me how to do so would be in the telegram when sending links to show the picture and description.in viber, everything works fine. now I use these settings: <meta property="og:title" content="Optimize Google Advertising"> <meta property="og:site_name" content="Advertising Agency AVB GROUP...
Perry72 asked April 4th 20 at 14:10
1
answer

Remove hyperlink in the results of telegrams bot (python 3.6)?

Good health, experts! I have a telegram bot gives a message to the site status in the format: www.test1.ru ok www.test2.ru ok www.test3.ru ok and from the first site to the message and added a picture and description of description. Is it possible to make the address of the website was just text? or if a hyperlink, without...
Alexandra_Wolf asked April 4th 20 at 14:05
2
answers

To open the user profile to the telegram, knowing it ID?

There are users with a username, and there is without it. I get their ID, but how can I access the user profile? Links tipo "tg://user?id=" not working( What you can do, is it not possible to know the profile any other way? Thank you.
Icie_Moore asked April 4th 20 at 14:04
2
answers

How to add the button in if the telegram bot in Python?

Make the telegram bot in Python. A beginner at this don't know much. How to put a button in if? That is, if call.data are equal, display the text and button.
dewayne asked April 4th 20 at 14:03
2
answers

As clicking the button (item), to add to the table CORINAIR??

Hello. Tried the choice of the number., in the end, at least 1 item how to add? User-SELECTED product... don't understand. Send SQL query that displays products that are in stock.. SQL query: cur.execute("'SELECT Name, Zenab FROM Product WHERE Cottonera IN(2, 4, 7, 8) and Vnalichii = 'True' ORDER BY Codover "') re_Pizs =...
Adelia.Schoen asked April 4th 20 at 14:03
1
answer

Working with functions puthon 3.6?

Good day experts! Just starting to learn Python, write a telegram. bot for their needs and there was a question on the functions. I have the code: def solR(status): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex(('192.168.11.12',3389)) if result == 0: status = 'Is number 1 - OK' else:...
stanley_Runolfsdottir asked April 4th 20 at 14:03