MadelineProtoDocs/docs/API_docs/constructors/webAuthorization.md
2018-04-01 13:24:46 +02:00

1.4 KiB

title description
webAuthorization webAuthorization attributes, type and example

Constructor: webAuthorization

Back to constructors index

Attributes:

Name Type Required
hash long Yes
bot_id int Yes
domain string Yes
browser string Yes
platform string Yes
date_created int Yes
date_active int Yes
ip string Yes
region string Yes

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'}