DeMaking commited on
Commit
3591c1c
·
verified ·
1 Parent(s): 7b238fc

Update bot.py

Browse files
Files changed (1) hide show
  1. bot.py +2 -2
bot.py CHANGED
@@ -39,7 +39,7 @@ if not WEBHOOK_DOMAIN:
39
  # Webhook configuration
40
  # -------------------------
41
  # Define a unique webhook path using the bot token
42
- WEBHOOK_PATH = f"/{TOKEN}"
43
  # Construct the full webhook URL (must be HTTPS as required by Telegram)
44
  WEBHOOK_URL = f"https://{WEBHOOK_DOMAIN}" # {WEBHOOK_PATH}"
45
 
@@ -114,7 +114,7 @@ async def main():
114
  await application.run_webhook(
115
  listen="0.0.0.0", # Listen on all available interfaces
116
  port=443, # Port to listen on
117
- url_path=WEBHOOK_PATH, # The webhook path; here, we use the bot token
118
  webhook_url=WEBHOOK_URL # The full webhook URL that Telegram will use to send updates
119
  )
120
 
 
39
  # Webhook configuration
40
  # -------------------------
41
  # Define a unique webhook path using the bot token
42
+ #WEBHOOK_PATH = f"/{TOKEN}"
43
  # Construct the full webhook URL (must be HTTPS as required by Telegram)
44
  WEBHOOK_URL = f"https://{WEBHOOK_DOMAIN}" # {WEBHOOK_PATH}"
45
 
 
114
  await application.run_webhook(
115
  listen="0.0.0.0", # Listen on all available interfaces
116
  port=443, # Port to listen on
117
+ # url_path=WEBHOOK_PATH, # The webhook path; here, we use the bot token
118
  webhook_url=WEBHOOK_URL # The full webhook URL that Telegram will use to send updates
119
  )
120