Telegram group ban/boot/kick user

纵饮孤独 提交于 2020-01-14 14:14:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!