Telegram (Direct & OAuth)

Direct

{
  "type": "Telegram",
  "data": {
    "id": 13312222,
    "first_name": "string",
    "last_name": "string",
    "username": "string",
    "photo_url": "string",
    "auth_date": 1341234231,
    "hash": "string"
  }
}

OAuth Variant

  1. POST /oauth/init with provider=telegram

  2. User authorizes in new tab

  3. Our /oauth/callback redirects to your redirect_uri with wallet_oauth_* params

  4. Finalize:

{
  "type": "TelegramOAuth",
  "data": { "state": "<wallet_oauth_state>", "code": "<wallet_oauth_code>" }
}

Example callback (truncated in query params as in your spec).

Last updated