Telegram check if user is admin

python-telegram-bottelegram-bot

I am using the telegram bot api to make a bot. I have some commands that can only be sent from admins. Like kick and ban commands. How do I check if the sender is an admin or not? I am using the python-telegram-bot api. I do not want everyone to be able to ban members.

Best Answer

You can use getChatMember method. See following instance:

Awesome Telegram Bot

Related Topic