UnbanChatMemberRequest

fun UnbanChatMemberRequest(chatId: Int, userId: Int, onlyIfBanned: Boolean = false)

Parameters

chatId

Unique identifier for the target group or username of the target supergroup or channel (in the format @username)

userId

Unique identifier of the target user

onlyIfBanned

Do nothing if the user is not banned