MadelineProtoDocs/old_docs/API_docs_v104/constructors/authorization.md
2019-08-15 20:25:16 +02: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
current Bool Optional Current?
official_app Bool Optional Official app?
password_pending Bool Optional Password pending?
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', 'current' => Bool, 'official_app' => Bool, 'password_pending' => Bool, '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', current=Bool, official_app=Bool, password_pending=Bool, 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'}