unbanChatMember

Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success.

Arguments
Name Type Description Required
chat_id int | string | null | array Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername) no
user_id int | null Unique identifier of the target user no
only_if_banned bool | null Do nothing if the user is not banned no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : bool | BPT\types\responseError

Static or normal : Static

Examples :

request::unbanChatMember(chat_id: int | string | null, user_id: int | null, only_if_banned: bool | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::unbanChatMember(['chat_id' => int | string | null, 'user_id' => int | null, 'only_if_banned' => bool | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::unbanChatMember();