Skip to main content
POST
/
sdk
/
{environmentId}
/
telegram
/
auth
Handle Telegram authentication
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/telegram/auth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "state": "<string>",
  "telegramUser": {
    "id": 123,
    "hash": "<string>",
    "authDate": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "photoURL": "<string>",
    "username": "<string>"
  }
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
state
string
required
telegramUser
object
required

Response

Accepted