Spaces:
Sleeping

axeronis commited on
Commit
be18586
·
1 Parent(s): 64797de

Fix: Add /api/v1 prefix to Telegram webhook URL

Browse files
Files changed (1) hide show
  1. backend/app/api/channels.py +1 -1
backend/app/api/channels.py CHANGED
@@ -67,7 +67,7 @@ async def connect_telegram_bot(
67
  )
68
 
69
  webhook_base = settings.TELEGRAM_WEBHOOK_URL or "https://your-domain.com"
70
- webhook_url = f"{webhook_base}/webhook/telegram/{tenant_id}"
71
 
72
  telegram_api_url = f"https://api.telegram.org/bot{bot_token}/setWebhook"
73
 
 
67
  )
68
 
69
  webhook_base = settings.TELEGRAM_WEBHOOK_URL or "https://your-domain.com"
70
+ webhook_url = f"{webhook_base}/api/v1/webhook/telegram/{tenant_id}"
71
 
72
  telegram_api_url = f"https://api.telegram.org/bot{bot_token}/setWebhook"
73