Start Telegram sign-in or account linking
curl --request GET \
--url https://my.server.express/api/v1/auth/oauth/telegramconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/auth/oauth/telegram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/auth/oauth/telegram"
response = requests.get(url)
print(response.text){
"success": false,
"error": "<string>"
}Auth
Start Telegram sign-in or account linking
Redirects the browser to Telegram’s OpenID Connect flow (scopes openid profile). With link=1 the callback goes to /client/link-callback/telegram instead of the sign-in callback. Telegram sign-in only works for an account that’s already linked.
GET
/
v1
/
auth
/
oauth
/
telegram
Start Telegram sign-in or account linking
curl --request GET \
--url https://my.server.express/api/v1/auth/oauth/telegramconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/auth/oauth/telegram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/auth/oauth/telegram"
response = requests.get(url)
print(response.text){
"success": false,
"error": "<string>"
}Query Parameters
1 to link Telegram to the signed-in account rather than sign in.
Available options:
1 Response
Redirect to Telegram.