T
T
TTeratron2020-05-07 11:54:21
Python
TTeratron, 2020-05-07 11:54:21

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

4 answer(s)
A
Arthur Grand, 2020-05-14
@TTeratron

You can simply relay messages from the client to the operator through this bot.

R
Roman Kulshin, 2020-05-07
@Gramor

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

A
Artemy Family, 2020-05-14
@APTEMOH

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.

T
TTeratron, 2020-05-08
@TTeratron

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 question

Ask a Question

731 491 924 answers to any question