Skip to content Skip to sidebar Skip to footer

How To Read Messages From Telegram Group With Bot?

I would like to connect a simple telegram bot to read messages from a group, (where I'm not admin). I already added the bot to the group, but it doesn't work. Here is the code I ha

Solution 1:

You need to change /setprivacy to Disable, or you can only receive command (starts with /).

You can refer to here for more details.

Solution 2:

Solution 3:

This is an example in Telepot framework. You can do something like this in your favorite framework.

defhandle(msg):
    if msg['chat']['id'] == -1001136714808:
        print(msg['text'])

Post a Comment for "How To Read Messages From Telegram Group With Bot?"