F
F
floomyz2021-02-07 15:25:56
Python
floomyz, 2021-02-07 15:25:56

How to train a telegram bot to send a message to a group chat?

I am writing a telegram bot in python, I need to make sure that the bot sends a message to the group chat by the id of the chat itself. The functionality is as follows:
1) The user in the correspondence with the bot clicks on the reply button
2) The bot sends a message to the user in response, and in parallel with this sends another one to the group chat in which it is a member.
How can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
scripter, 2021-02-07
@scripter

Where do you get the chat id from?
In general, the method specifies how and where to send.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question