Answer the question
In order to leave comments, you need to log in
Support bot, telethon. Bot chat with the customer. How to organize a chat so that the bot (if necessary) adds a human operator to the chat?
The task is to create a bot that would answer questions, and in case of a user request, connect a human operator to the dialogue. Those. the client conducts a dialogue with the bot, if there are questions that the bot cannot answer (or at the request of the client), he connects the operator to the chat and while the operator is in the chat, he does not enter into correspondence until the operator disconnects.
As I see it: the bot creates a chat and adds itself there and adds a client. According to the message, for example, "I want an operator" adds an operator and waits until he leaves the chat. As soon as the operator left - continues to conduct a dialogue.
Correct me if I'm wrong in my idea
Answer the question
In order to leave comments, you need to log in
You can simply relay messages from the client to the operator through this bot.
Yes, such a format has a place to be, as an option, all this can be implemented in a bot, so that the user does not experience dissonance from the fact that he is thrown in chats
I use this https://github.com/Surzhikov/Telegram-Site-Helper-2.0
The code is open, expanded as I need, it turned out very convenient.
Thanks for the answer. those. the chatbot should work only through the Telegram API (the telegram bot API is not suitable, because it cannot add an operator to the dialog, or I just didn’t find how to do it
)
: was to add an operator) right? Because if the chatbot communicates in a private chat, then you can’t add an operator, but I didn’t find how to convert a regular chat into a group chat on the fly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question