MadelineProtoDocs/docs/API_docs/constructors/webAuthorization.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.5 KiB

title description image
webAuthorization webAuthorization attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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