Layer 220
WebAuthorization
Represents a bot logged in using the Telegram login widget
constructor
webAuthorization#a6f8f452 hash:long bot_id:long domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization;
Parameters
| Name | Type | Description |
|---|---|---|
| Hash | long | Authorization hash |
| BotId | long | 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 | int | When was the web session created |
| DateActive | int | When was the web session last active |
| Ip | string | IP address |
| Region | string | Region, determined from IP address |
Returns
WebAuthorizationGogram Example
// Creating WebAuthorization constructor obj := &tg.WebAuthorization{ Hash: int64(0), BotId: int64(0), Domain: "...", Browser: "...", Platform: "...", DateCreated: 0, // ... more required fields }