Avatar ·

Telegram-Bot in a common chat

📁 Advanced Python Topics, work

I made a simple Telegram bot:


import telebot
@bot.message_handler(func_types=["text"])
def repeat_all_messages(message):
    if (message.text.split(" ")[0].upper() == 'BOT,'):
        bot.send_message(message.chat.id, 'I\'m here')

Everything works fine, but when I add it to the group chat, it is silent. Tell me how to make it adapted to group chats?