MadelineProtoDocs/old_docs/API_docs_v75/constructors/webAuthorization.md
Sean 4baac3178e Add Syntax Highlight for Markdown
Add PHP, Lua language tag to Code area
2018-10-18 00:30:20 +08: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'}