Raw.Authorization
Logged-in session
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true unconfirmed:flags.5?true 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 = Authorization;
export namespace Raw {
export class Authorization {
constructor(params: {
current?: boolean;
officialApp?: boolean;
passwordPending?: boolean;
encryptedRequestsDisabled?: boolean;
callRequestsDisabled?: boolean;
unconfirmed?: boolean;
hash: bigint;
deviceModel: string;
platform: string;
systemVersion: string;
apiId: number;
appName: string;
appVersion: string;
dateCreated: number;
dateActive: number;
ip: string;
country: string;
region: string;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xad01d61d
Property
current
: boolean or undefinedWhether this is the current session
officialApp
: boolean or undefinedWhether the session is from an official app
passwordPending
: boolean or undefinedWhether the session is still waiting for a 2fa password
encryptedRequestsDisabled
: boolean or undefinedWhether this session will accept encrypted chats
callRequestsDisabled
: boolean or undefinedWhether this session will accept phone calls
unconfirmed
: boolean or undefinedWhether the session is unconfirmed, see here for more info.
hash
: bigintIdentifier
deviceModel
: stringDevice model
platform
: stringPlatform
systemVersion
: stringSystem version
apiId
: numberApi id
appName
: stringApp name
appVersion
: stringApp version
dateCreated
: numberWhen was the session created
dateActive
: numberWhen was the session last active
ip
: stringLast known ip
country
: stringCountry determined from ip
region
: stringRegion determined from ip