问题
I need to create a Telegram bot to moderate a group and be able to ban/boot/kick users from the group.
I could not find anything in the Telegram API to boot a user from a group, how can a bot do this through the API?
回答1:
You can use kickChatMember to remove a user from a group.
The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
来源:https://stackoverflow.com/questions/39817082/telegram-group-ban-boot-kick-user