Telegram bot api - get all messages in a group

I am working on Telegram bot api in my java application. I created a supergroup and will add a bot to this as an administrator. I want to receive all messages in this supergroup (not deleted messages) through the bot. Is there any useful method to do this?

+5
source share
1 answer

Yes. First, you must "disable" the privacy of your bot so that it can access all messages in groups. secondly, use getUpdates to see the latest updates, and user messages will be there.

+6
source

Source: https://habr.com/ru/post/1258294/


All Articles