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

2.0 KiB

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

Constructor: authorization

Back to constructors index

Authorization

Attributes:

Name Type Required Description
hash long Yes Hash
device_model string Yes Device model
platform string Yes Platform
system_version string Yes System version
api_id int Yes Api ID
app_name string Yes App name
app_version string Yes App version
date_created int Yes Date created
date_active int Yes Date active
ip string Yes Ip
country string Yes Country
region string Yes Region

Type: Authorization

Example:

$authorization = ['_' => 'authorization', 'hash' => long, 'device_model' => 'string', 'platform' => 'string', 'system_version' => 'string', 'api_id' => int, 'app_name' => 'string', 'app_version' => 'string', 'date_created' => int, 'date_active' => int, 'ip' => 'string', 'country' => 'string', 'region' => 'string'];

PWRTelegram json-encoded version:

{"_": "authorization", "hash": long, "device_model": "string", "platform": "string", "system_version": "string", "api_id": int, "app_name": "string", "app_version": "string", "date_created": int, "date_active": int, "ip": "string", "country": "string", "region": "string"}

Or, if you're into Lua:

authorization={_='authorization', hash=long, device_model='string', platform='string', system_version='string', api_id=int, app_name='string', app_version='string', date_created=int, date_active=int, ip='string', country='string', region='string'}