skip to Main Content

How can I reply to a message after a command in Telebot API in python – Telegram API

I have this code.. import telebot #telegram API api_key = os.environ['Tele_API_key'] bot = telebot.TeleBot(api_key) @bot.message_handler(commands=['start']) def help_command(message): bot.send_message(chat.id,"send a message") @bot.message_handler(func = lambda msg: msg.text is not None and '/' not in msg.text) if message.text == "Hi": bot.send_message(chat.id,"Hello!") It sends…

VIEW QUESTION
Back To Top
Search