Skip to main content
POST
/
api
/
v1
/
auth
/
telegram
User telegram login
curl --request POST \
  --url https://api.paylora.org/api/v1/auth/telegram \
  --header 'Content-Type: application/json' \
  --data '
{
  "auth_date": 1762417564,
  "first_name": "Jhon",
  "hash": "679c7c5844ds",
  "id": 1721678137,
  "photo_url": "https://t.me/i/userpic/320/example.jpg",
  "username": "username_example"
}
'
{
  "success": true,
  "data": {
    "access": ""
  }
}

Body

application/json
auth_date
number
required

Telegram authentication date

Example:

1762417564

first_name
string
required

User first name

Example:

"Jhon"

hash
string
required

Authentication hash

Example:

"679c7c5844ds"

id
number
required

Telegram user ID

Example:

1721678137

photo_url
string

User profile photo URL

Example:

"https://t.me/i/userpic/320/example.jpg"

username
string

Telegram username

Example:

"username_example"

Response

User`s logined via telegram