简体   繁体   中英

How to know if an admin removed a Telegram bot from group?

I encounter with a problem in programming of a Telegram bot via Python! The problem is that if I add the bot to a group which is not super group I can successfully detect that the bot is added in that group via calling getUpdate method but if admin of that group decides to remove the bot I can't detect removing process because getUpdate doesn't consider removing process! If the group will be a super group there won't be any problems at all! Thanks in advance!

You can try getChatMember with the bots ID as the user ID.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM