MadelineProtoDocs/old_docs/API_docs_v89/constructors/webAuthorization.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.6 KiB

title description image
webAuthorization Web authorization https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: webAuthorization

Back to constructors index

Web authorization

Attributes:

Name Type Required Description
hash long Yes Hash
bot_id int Yes Bot ID
domain string Yes Domain
browser string Yes Browser
platform string Yes Platform
date_created int Yes Date created
date_active int Yes Date active
ip string Yes Ip
region string Yes Region

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

PWRTelegram json-encoded version:

{"_": "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'}