Answer the question
In order to leave comments, you need to log in
How to realize that when you press the keyboard button in the telegram bot, you open a chat with a person?
In Telegram, the bot, when clicking on the 'order' button, should transfer the user to a chat with a specific person. There is no dialogue with him yet. His Id is
bot.send_message () - I tried this function and it turns out that the bot itself sends a message to this person. And it should be so that it would just open a chat with the user.
Answer the question
In order to leave comments, you need to log in
You can use the Inline button as a url to pass the username of the user with whom you want to open a chat. Link in the format t.me/username.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question