I can’t find a way to ban or kick a user from a group chat using the pyTelegramBotAPI library
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
If I were you, I would create a blacklist. I would enter the user.id I want to block there. Then I would check "if the message is sent by a user who is on the blacklist, then this message should be deleted." Simply and without external means…