# 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 int 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' => int, 'domain' => 'string', 'browser' => 'string', 'platform' => 'string', 'date_created' => int, 'date_active' => int, 'ip' => 'string', 'region' => 'string'];

Or, if you’re into Lua:

webAuthorization={_='webAuthorization', hash=long, bot_id=int, domain='string', browser='string', platform='string', date_created=int, date_active=int, ip='string', region='string'}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.