fix: telegram support

This commit is contained in:
tim
2025-09-01 13:02:13 +08:00
parent e63d66806d
commit 575e90e558
2 changed files with 6 additions and 4 deletions

View File

@@ -14,9 +14,9 @@ export function telegramAuthorize(inviteToken = '') {
const url =
`https://oauth.telegram.org/auth` +
`?bot_id=${encodeURIComponent(TELEGRAM_BOT_ID)}` +
`&origin=${encodeURIComponent(WEBSITE_BASE_URL)}` +
`&request_access=write` +
`&redirect_uri=${encodeURIComponent(redirectUri)}`
`&origin=${encodeURIComponent(redirectUri)}` +
`&request_access=write`
// `&redirect_uri=${encodeURIComponent(redirectUri)}`
window.location.href = url
}