telegramlib.ban

telegramlib.ban()[source]

Bans specified users from the bot.

This function sets a ‘ban’ flag for each specified user, preventing them from interacting with the bot.

Example

/ban <user_id_1> <user_id_2>