mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
1.5 KiB
1.5 KiB
title | description | nav_exclude | image |
---|---|---|---|
webAuthorization | Represents a bot logged in using the Telegram login widget | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: webAuthorization
Represents a bot logged in using the Telegram login widget
Attributes:
Name | Type | Required | Description |
---|---|---|---|
hash | long | Yes | Authorization hash |
bot_id | long | Yes | Bot ID |
domain | string | Yes | The domain name of the website on which the user has logged in. |
browser | string | Yes | Browser user-agent |
platform | string | Yes | Platform |
date_created | int | Yes | When was the web session created |
date_active | int | Yes | When was the web session last active |
ip | string | Yes | IP address |
region | string | Yes | Region, determined from IP address |
Type: WebAuthorization
Example:
$webAuthorization = ['_' => 'webAuthorization', 'hash' => long, 'bot_id' => long, 'domain' => 'string', 'browser' => 'string', 'platform' => 'string', 'date_created' => int, 'date_active' => int, 'ip' => 'string', 'region' => 'string'];