Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,6 +13,7 @@ import time
|
|
| 13 |
# Replace with your actual API keys and bot token
|
| 14 |
GOOGLE_API_KEY = 'AIzaSyAYXUMnwmR4nUGDCs97FJJsafcQAPAAuzE'
|
| 15 |
BOT_TOKEN = '7484321656:AAFaswxTqaSHu_s4jd_pk2Q2OJJWYcWHwAM'
|
|
|
|
| 16 |
|
| 17 |
# Initialize the Telegram bot
|
| 18 |
bot = telebot.TeleBot(BOT_TOKEN)
|
|
@@ -102,7 +103,7 @@ def handle_message(update):
|
|
| 102 |
|
| 103 |
# Function to set the webhook with Telegram
|
| 104 |
def set_webhook():
|
| 105 |
-
webhook_url = 'https://
|
| 106 |
bot.set_webhook(url=webhook_url)
|
| 107 |
|
| 108 |
if __name__ == "__main__":
|
|
|
|
| 13 |
# Replace with your actual API keys and bot token
|
| 14 |
GOOGLE_API_KEY = 'AIzaSyAYXUMnwmR4nUGDCs97FJJsafcQAPAAuzE'
|
| 15 |
BOT_TOKEN = '7484321656:AAFaswxTqaSHu_s4jd_pk2Q2OJJWYcWHwAM'
|
| 16 |
+
# WEBHOOK_URL = 'https://measmonysuon-flyingbird.hf.space//bot7484321656:AAFaswxTqaSHu_s4jd_pk2Q2OJJWYcWHwAM'
|
| 17 |
|
| 18 |
# Initialize the Telegram bot
|
| 19 |
bot = telebot.TeleBot(BOT_TOKEN)
|
|
|
|
| 103 |
|
| 104 |
# Function to set the webhook with Telegram
|
| 105 |
def set_webhook():
|
| 106 |
+
webhook_url = 'https://measmonysuon-flyingbird.hf.space/' + BOT_TOKEN
|
| 107 |
bot.set_webhook(url=webhook_url)
|
| 108 |
|
| 109 |
if __name__ == "__main__":
|