authorization
Logged-in session
type tg.Authorization struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Current | bool | — | Whether this is the current session |
OfficialApp | bool | — | Whether the session is from an official app |
PasswordPending | bool | — | Whether the session is still waiting for a 2FA password |
EncryptedRequestsDisabled | bool | — | Whether this session will accept encrypted chats |
CallRequestsDisabled | bool | — | Whether this session will accept phone calls |
Unconfirmed | bool | — | Whether the session is unconfirmed, see here » for more info. |
Hash | int64 | yes | Identifier |
DeviceModel | string | yes | Device model |
Platform | string | yes | Platform |
SystemVersion | string | yes | System version |
APIID | int | yes | API ID |
AppName | string | yes | App name |
AppVersion | string | yes | App version |
DateCreated | int | yes | When was the session created |
DateActive | int | yes | When was the session last active |
IP | string | yes | Last known IP |
Country | string | yes | Country determined from IP |
Region | string | yes | Region determined from IP |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
authorization#ad01d61d