Raw.WebAuthorization

Raw.WebAuthorization

Represents a bot logged in using the telegram login widget

webAuthorization#a6f8f452 hash:long bot_id:long domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization;
export namespace Raw {
  export class WebAuthorization {
    constructor(params: {
      hash: bigint;
      botId: bigint;
      domain: string;
      browser: string;
      platform: string;
      dateCreated: number;
      dateActive: number;
      ip: string;
      region: string;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xa6f8f452

Property

  • hash : bigint

    Authorization hash

  • botId : bigint

    Bot id

  • domain : string

    The domain name of the website on which the user has logged in.

  • browser : string

    Browser user-agent

  • platform : string

    Platform

  • dateCreated : number

    When was the web session created

  • dateActive : number

    When was the web session last active

  • ip : string

    Ip address

  • region : string

    Region, determined from ip address