Telegram Bot API
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
post/banChatMember
Request
- Base URL: https://api.telegram.org/bot<bot_token>
- URL: https://api.telegram.org/bot<bot_token>/banChatMember
- Auth: none declared
Request body
Response
Telegram API response
Changes
No recorded changes to this operation across all 3 revisions of this API.