R
R
Roman2020-10-10 10:04:37
Python
Roman, 2020-10-10 10:04:37

How to implement operator connections in a telegram bot?

Hello. How can I connect an operator in a telegram bot when a button is pressed? It is necessary that all operators receive a notification, and whoever connects first, the chat with the user is then fixed. If the user does not answer within 15 minutes, disconnect the operator from the chat.
Is it possible to implement the operator to answer in the telegram itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Krostelev, 2020-10-10
@no_name_2020

How can I connect an operator in a telegram bot when a button is pressed? All operators need to be notified

You can store the IDs of all operators in the database and when you click on the button, send out a mailing to all operators, so that each operator contacts this bot at least once, otherwise he will not receive messages.
then the chat with the user is fixed

Further, either a personal conversation between the operator and the user, or somehow organize communication through the bot itself. The bot duplicates the message that the operator sent to it and sends it to the user. And vice versa. But this is already too zamorochno and not entirely correct or something. Although I won’t immediately say how else to organize it using the cart, so much so that the bot can organize it all.
If the user does not answer within 15 minutes, disconnect the operator from the chat.

Here already use the scheduler library or the like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question