v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
SDK

Telegram provider check auth

post/sdk/{environmentId}/checkTelegramAuth

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

Request body

statestring

Temporary auth state for oauth2 access

telegramAuthTokenstring

JWT Auth Token coming from Telegram Bot containing user information

forceCreateUserboolean

Force create a user for Telegram Auto Login

codestring
sessionPublicKeystring
captchaTokenstring

When provided, used to verify that a captcha is valid and get the success/failure result from the captcha provider server-side.

Example request

{
  "code": "An example name",
  "sessionPublicKey": "An example name"
}

Response

The user is recognized