unbanChatMember
Reinstates a previously banned user in a supergroup or channel, allowing them to rejoin via invite link. Requires bot administrator rights and returns true on success.
Instructions
Unban a previously banned user in a supergroup or channel. The user will NOT return to the group automatically but will be able to join via link, etc. The bot must be an administrator. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup/channel (in the format @channelusername) | |
| user_id | Yes | Unique identifier of the target user | |
| only_if_banned | No | Do nothing if the user is not banned |