WebAuthorization
- class pyrogram.raw.types.WebAuthorization
Represents a bot logged in using the Telegram login widget
Constructor of
WebAuthorization.- Details:
Layer:
223ID:
A6F8F452
- Parameters:
hash (
int64-bit) – Authorization hashbot_id (
int64-bit) – Bot IDdomain (
str) – The domain name of the website on which the user has logged in.browser (
str) – Browser user-agentplatform (
str) – Platformdate_created (
int32-bit) – When was the web session createddate_active (
int32-bit) – When was the web session last activeip (
str) – IP addressregion (
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
├── hash →
long├── bot_id →
long├── domain →
string├── browser →
string├── platform →
string├── date_created →
int├── date_active →
int├── ip →
string└── region →
stringExample
WebAuthorization(
hash=0,
bot_id=0,
domain="text",
browser="text",
platform="text",
date_created=0,
date_active=0,
ip="text",
region="text",
)