webAuthorization
Represents a bot logged in using the Telegram login widget
type tg.WebAuthorization struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Hash | int64 | yes | Authorization hash |
BotID | int64 | yes | Bot ID |
Domain | string | yes | The domain name of the website on which the user has logged in. |
Browser | string | yes | Browser user-agent |
Platform | string | yes | Platform |
DateCreated | int | yes | When was the web session created |
DateActive | int | yes | When was the web session last active |
IP | string | yes | IP address |
Region | string | yes | Region, determined from IP address |
References
- Official documentation
- Generated Go reference
- TL definition:
webAuthorization#a6f8f452