unbanChatMember - mkotb/Telegram-Errors GitHub Wiki
If this is used in a normal group, Telegram will respond with method is available for supergroup chats only
If the bot isn't an administrator, Telegram will respond with Bad Request: Not enough rights to kick/unban chat member
If the user hasn't been banned, Telegram will respond with USER_NOT_PARTICIPANT
If not provided, Telegram will return chat_id is empty
If the bot doesn't have access to the chat, or it doesn't exist, Telegram will return chat not found
If chat isn't a supergroup, Telegram will return method is available for supergroup chats only
If not provided, Telegram will respond with wrong user_id specified
If the user id is invalid, Telegram will respond with USER_ID_INVALID