import telebot from config import TELEGRAM_TOKEN bot = telebot.TeleBot(TELEGRAM_TOKEN) @bot.message_handler(commands=["start", "hello"]) def send_welcome(message): bot.reply_to(message, "Hello, I'm a bot!") @bot.message_handler(func=lambda msg: True) def echo_all(message): bot.reply_to(message, message.text) bot.infinity_polling()