Spaces:
Runtime error
Runtime error
Update telegram_bot.py
Browse files- telegram_bot.py +1 -1
telegram_bot.py
CHANGED
@@ -6,7 +6,7 @@ bot = telebot.TeleBot(TOKEN)
|
|
6 |
|
7 |
@bot.message_handler(func=lambda message: True)
|
8 |
def chat(message):
|
9 |
-
response = requests.get(f"https://
|
10 |
bot.reply_to(message, response["response"])
|
11 |
|
12 |
bot.polling()
|
|
|
6 |
|
7 |
@bot.message_handler(func=lambda message: True)
|
8 |
def chat(message):
|
9 |
+
response = requests.get(f"https://syedmoinms-chatbot.hf.space/chat?msg={message.text}").json()
|
10 |
bot.reply_to(message, response["response"])
|
11 |
|
12 |
bot.polling()
|