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'];