Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 358
hamed Avatar asked Oct 16 '16 16:10

hamed


1 Answers

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.

like image 84
Vahid Msm Avatar answered Oct 31 '22 11:10

Vahid Msm