Skip to main content

Start Sign in with Telegram

GET 

/api/v1/auth/telegram/login

Redirects the browser to https://oauth.telegram.org/auth with the instance bot's id, the instance origin and a return_to on /api/v1/auth/telegram/callback carrying a single-use state (10 minutes). Mounted only when Telegram is configured and SP_TELEGRAM_LOGIN_ENABLED is true (listed as type telegram by GET /api/v1/auth/providers); the bot's domain must be set with @BotFather /setdomain.

Request​

Responses​

Redirect to Telegram, or to the login page with error when the org is unknown or the feature is off