hamed
hamed

Reputation: 8033

telegram bot api - get all messages in a group

I'm working on Telegram bot api in my java application. I have created a super group and add my bot to this as an administrator. I want to get all messages in that super group(not deleted messages) via bot. Is there any useful method for doing that?

Upvotes: 6

Views: 15122

Answers (1)

Vahid Msm
Vahid Msm

Reputation: 1082

Yes. first, you should "disable" privacy of your bot so it can access to all messages in groups. second, use getUpdates to see recent updates and user messages will be there.

Upvotes: 8

Related Questions