-
My bot needs to get information about posts in the channel. As far as I know, the bot can only get information about new posts, and I'm generally okay with a solution for new posts only. But I have a new problem - I can't receive messages from the channel. What I did: I signed the bot to the channel (gave it admin rights) and inserted Is there any example/manual of how to properly solve this problem? (And is it even possible?) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, it is possible to solve this easily. There is no need to use app.process_update for this. Just register a MessageHandler with the filter There is an example for this, echobot.py |
Beta Was this translation helpful? Give feedback.
-
Yay, it worked. It turned out that the problem was not with the handlers, but with using await app.updater.start_polling(allowed_updates=[Update.CHANNEL_POST, Update.POLL_ANSWER]) But thanks anyway! |
Beta Was this translation helpful? Give feedback.
Yay, it worked. It turned out that the problem was not with the handlers, but with using
allowed_updates
when starting the bot:But thanks anyway!