dynstat commited on
Commit
a70183c
·
verified ·
1 Parent(s): f4da5b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ async def set_webhook():
63
  This should be called after deploying the bot to ensure Telegram sends updates to the correct endpoint.
64
  """
65
  # Construct the webhook URL using the SPACE_ID environment variable
66
- webhook_url = f"https://{os.environ.get('SPACE_ID')}.hf.space/webhook"
67
  # Telegram API URL to set the webhook
68
  set_webhook_url = f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/setWebhook"
69
  # Payload containing the webhook URL and the secret token for security
 
63
  This should be called after deploying the bot to ensure Telegram sends updates to the correct endpoint.
64
  """
65
  # Construct the webhook URL using the SPACE_ID environment variable
66
+ webhook_url = f"https://dynstat-test2.hf.space/webhook"
67
  # Telegram API URL to set the webhook
68
  set_webhook_url = f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/setWebhook"
69
  # Payload containing the webhook URL and the secret token for security