File size: 480 Bytes
9152169 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import telebot
from app import chatbot # Ye app.py ka chatbot function import karega
# Telegram bot token
TOKEN = "7881901341:AAEaE5gndeORmCuyzSwOyf2ELFLXHneCpiw"
bot = telebot.TeleBot(TOKEN)
# Message handle karna
@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)
# Bot start karna
print("🤖 Telegram bot running...")
bot.polling() |