Skip to main content
POST
cURL

Body

application/json

The document Telegram's Login Widget produces. Every field except hash participates in the signature in its textual form, so the server keeps the digits of the numeric fields verbatim rather than parsing them as floating point.

id
integer<int64>
required

The Telegram user ID.

auth_date
integer<int64>
required

Unix seconds at which Telegram signed the payload.

hash
string
required

HMAC-SHA256 over the other fields under SHA-256 of the bot token.

first_name
string
last_name
string
username
string
photo_url
string

Response

Signed in

customer
object
required
expiresAt
string<date-time>
required