Use this method to kick a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless
unbanned first. The bot must be an administrator in the group for this to work. Returns
True on success.
Note: This will method only work if the ‘All Members Are Admins’ setting is off in the target group. Otherwise members may only be removed by the group's creator or by the member that added them.
Values inside $content:
Parameters |
Type |
Required |
Description |
chat_id |
Integer or String |
Yes |
Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername ) |
user_id |
Integer |
Yes |
Unique identifier of the target user |
\param $content the request parameters as array
\return the JSON Telegram's reply