D
D
Denis Kulikov2021-12-24 22:48:33
Python
Denis Kulikov, 2021-12-24 22:48:33

How to make a telegram bot reply to messages in a channel?

I already know that in order for the bot to write a message to the channel, you just need to specify the channel address instead of the user id in the send_message () method. The problem is that I don't know how to make the bot track messages coming from the channel. Those. let's say I want to create a simple dice bot (simple rolling), I need the bot to read the command written in the channel and display a random number there. Can you please tell me how to implement this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question