File size: 371 Bytes
4451f97
8eef107
4451f97
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import telebot
from app import chatbot

TOKEN = "7881901341:AAEaE5gndeORmCuyzSwOyf2ELFLXHneCpiw"
bot = telebot.TeleBot(TOKEN)

@bot.message_handler(func=lambda message: True)
def handle_message(message):
    user_input = message.text
    bot_reply = chatbot(user_input)
    bot.send_message(message.chat.id, bot_reply)

print("🤖 Telegram bot running...")
bot.polling()