curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/checkTelegramAuth \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "<string>",
"telegramAuthToken": "<string>",
"forceCreateUser": true,
"code": "An example name",
"sessionPublicKey": "An example name",
"captchaToken": "<string>"
}
'{}curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/checkTelegramAuth \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "<string>",
"telegramAuthToken": "<string>",
"forceCreateUser": true,
"code": "An example name",
"sessionPublicKey": "An example name",
"captchaToken": "<string>"
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36"95b11417-f18f-457f-8804-68e361f9164f"
Telegram Check Auth
Temporary auth state for oauth2 access
JWT Auth Token coming from Telegram Bot containing user information
Force create a user for Telegram Auto Login
"An example name"
"An example name"
When provided, used to verify that a captcha is valid and get the success/failure result from the captcha provider server-side.
The user is recognized
Was this page helpful?