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?
No answers yet.
Log in to leave an answer
Blogs
Asynchronous Programming in JavaScript: A Complete Guide for Node.js
DSL in Swift: How to Create Your Own Programming Language in an Evening
How to Get a Job as a C# Developer: Tips and a Resume in Practice
How to place the cursor at the end of text in EditText: Kotlin for Beginners