MadelineProtoDocs/old_docs/API_docs_v86/constructors/authorization.md

1.6 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'];

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