Link Search Menu Expand Document

Constructor: webAuthorization

Back to constructors index

Represents a bot logged in using the Telegram login widget

Attributes:

NameTypeRequiredDescription
hashlongYesAuthorization hash
bot_idlongYesBot ID
domainstringYesThe domain name of the website on which the user has logged in.
browserstringYesBrowser user-agent
platformstringYesPlatform
date_createdintYesWhen was the web session created
date_activeintYesWhen was the web session last active
ipstringYesIP address
regionstringYesRegion, 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'];