MadelineProtoDocs/docs/API_docs/constructors/webAuthorization.md
2024-05-01 14:53:46 +02:00

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

Back to constructors index

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