DeMaking commited on
Commit
6b8f3fb
·
verified ·
1 Parent(s): 9f3d0a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ from huggingface_hub import login
11
 
12
  # Global variables
13
  TOKEN = os.getenv("TELEGRAM_BOT_TOKEN") # Telegram Token
14
- WEBHOOK_URL = "https://demaking-decision-helper-bot.hf.space/"
15
  PORT = int(os.getenv("PORT", 7860)) # HF Spaces listens on port 7860 by default
16
  HF_HUB_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
17
 
@@ -97,7 +97,7 @@ async def receive_update(request: Request):
97
 
98
  # Function to set up webhook
99
  async def set_webhook():
100
- webhook_url = WEBHOOK_URL
101
  await telegram_app.bot.set_webhook(webhook_url)
102
  logger.info(f"Webhook set to {webhook_url}")
103
 
 
11
 
12
  # Global variables
13
  TOKEN = os.getenv("TELEGRAM_BOT_TOKEN") # Telegram Token
14
+ # WEBHOOK_URL = "https://demaking-decision-helper-bot.hf.space/"
15
  PORT = int(os.getenv("PORT", 7860)) # HF Spaces listens on port 7860 by default
16
  HF_HUB_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
17
 
 
97
 
98
  # Function to set up webhook
99
  async def set_webhook():
100
+ webhook_url = "https://demaking-decision-helper-bot.hf.space/"
101
  await telegram_app.bot.set_webhook(webhook_url)
102
  logger.info(f"Webhook set to {webhook_url}")
103