Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
For those who have the same issue, I found a solution. The solution is obvious - I wrote my bot.
Here is the code:
import telebot
token='Токен_который_дает_BotFather'
bot = telebot.TeleBot(token)
GROUP_ID=ID_чата_которое_дает[email protected]
blacklist=['слово_которое_нужно_удалять']
@bot.message_handler(content_types=["text"])
def handle_text(message):
for x in blacklist:
if(x in message.text):
bot.delete_message(message.chat.id, message.message_id)
else:
pass
if __name__ == "__main__":
bot.infinity_polling()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question