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
: bigintAuthorization hash
botId
: bigintBot id
domain
: stringThe domain name of the website on which the user has logged in.
browser
: stringBrowser user-agent
platform
: stringPlatform
dateCreated
: numberWhen was the web session created
dateActive
: numberWhen was the web session last active
ip
: stringIp address
region
: stringRegion, determined from ip address