API Reference

banChatMember

Use this method to ban a Chat Member from accessing Chat. On success, ChatMember is returned with the status "banned". A ban is a blacklist; the user will not be able to join Chat again.

FieldTypeRequiredDescription
methodStringYes"banChatMember"
chat_idStringYesUnique identifier for Group or Channel where member belongs to.
user_idStringYesUnique identifier for this user member.
Body Params
string
required
Defaults to banChatMember
string
required
Defaults to 47447589641110235
string
required
Defaults to 741147524123577778
Response

Language
Request
Choose an example:
application/json