6
6
64bitweb2018-03-23 11:44:00
API
64bitweb, 2018-03-23 11:44:00

How to connect an operator when communicating with a Telegram bot?

Hello. I use the package on Laravel 5.6 irazasyed/telegram-bot-sdk. Screwed - everyone is happy. But I came across a task that drove me to a dead end. I want to connect, when a button is pressed, a specific Telegram user as an operator. What do I mean. When communicating with the bot, the client presses the "Operator" button and then communicates with a "live" person. But I can not understand the logic of this scheme. Need to create a chat and push participants there? Or to invite the operator to the existing "Bot" and "Client" chat. Thank you in advance. I just don't even know how to put a question to Google, so I'm asking for help here. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-03-23
@Sanasol

You connect the operator and the client with your code, send each other's messages to them while they are in a state of communication.
The simplest logic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question