kickChatMember - mkotb/Telegram-Errors GitHub Wiki
If the bot does not have admin access, Telegram will respond with Forbidden: CHAT_ADMIN_REQUIRED
If the bot is not the inviter of the user, Telegram will respond with Need to be inviter of the user to kick it from the group
To bypass this, disable the All members are admins
option for administrators and make the bot an administrator.
If the bot is attempting to kick an administrator, Telegram will respond with Only creator of the group can kick administrators from the group
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 the provided chat is a private chat, Telegram will return Chat member status can't be changed in private chats