Fix Telegram bot binding fallback

This commit is contained in:
2569718930@qq.com
2026-06-09 12:57:37 +08:00
parent f320d07e03
commit d0c0bf7034
9 changed files with 189 additions and 18 deletions
+2
View File
@@ -459,10 +459,12 @@ def create_telegram_bot_bind_link(request: Request) -> Dict[str, Any]:
or "polyyuanbot"
).strip().lstrip("@")
bot_url = f"https://t.me/{bot_username}?start={start_param}"
bot_command = f"/start {start_param}"
return {
"ok": True,
"token": token,
"start_param": start_param,
"bot_command": bot_command,
"bot_url": bot_url,
"expires_in_seconds": 600,
}