V
V
Vasil2020-05-22 21:22:17
Python
Vasil, 2020-05-22 21:22:17

Python | pyTelegramBotAPI | Do you need a code that will ban ( mute, kick )?

Python | pyTelegramBotAPI | Need a code that will ban ( mute , kick )

Libraries :
Help Need a code that will ban participants . Help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-05-22
@hottabxp

from telebot import apihelper

kick_chat_member(token, chat_id, user_id)

But I didn't check. The kick_chat_member method is used to kick users from a group or channel.
kickChatMember
If you need to block a user in a bot, just check the user_id from the user_id and the black list in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question