Raw.Authorization

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 undefined

    Whether this is the current session

  • officialApp : boolean or undefined

    Whether the session is from an official app

  • passwordPending : boolean or undefined

    Whether the session is still waiting for a 2fa password

  • encryptedRequestsDisabled : boolean or undefined

    Whether this session will accept encrypted chats

  • callRequestsDisabled : boolean or undefined

    Whether this session will accept phone calls

  • unconfirmed : boolean or undefined

    Whether the session is unconfirmed, see here for more info.

  • hash : bigint

    Identifier

  • deviceModel : string

    Device model

  • platform : string

    Platform

  • systemVersion : string

    System version

  • apiId : number

    Api id

  • appName : string

    App name

  • appVersion : string

    App version

  • dateCreated : number

    When was the session created

  • dateActive : number

    When was the session last active

  • ip : string

    Last known ip

  • country : string

    Country determined from ip

  • region : string

    Region determined from ip