Spaces:
Runtime error
Runtime error
import telebot | |
from app import chatbot | |
TOKEN = "7881901341:AAEaE5gndeORmCuyzSwOyf2ELFLXHneCpiw" | |
bot = telebot.TeleBot(TOKEN) | |
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() |