WebAuthorization

class pyrogram.raw.types.WebAuthorization

Represents a bot logged in using the Telegram login widget

Constructor of WebAuthorization.

Details:
  • Layer: 223

  • ID: A6F8F452

Parameters:
  • hash (int 64-bit) – Authorization hash

  • bot_id (int 64-bit) – Bot ID

  • domain (str) – The domain name of the website on which the user has logged in.

  • browser (str) – Browser user-agent

  • platform (str) – Platform

  • date_created (int 32-bit) – When was the web session created

  • date_active (int 32-bit) – When was the web session last active

  • ip (str) – IP address

  • region (str) – Region, determined from IP address

TL Schema

webAuthorization#a6f8f452
hash:long
bot_id:long
domain:string
browser:string
platform:string
date_created:int
date_active:int
ip:string
region:string

= WebAuthorization

Parameter Tree

WebAuthorization
├── hashlong
├── bot_idlong
├── domainstring
├── browserstring
├── platformstring
├── date_createdint
├── date_activeint
├── ipstring
└── regionstring

Example

WebAuthorization(
    hash=0,
    bot_id=0,
    domain="text",
    browser="text",
    platform="text",
    date_created=0,
    date_active=0,
    ip="text",
    region="text",
)