Skip to main content

webAuthorization

Represents a bot logged in using the Telegram login widget

type tg.WebAuthorization struct { /* ... */ }

Fields

NameTypeRequiredDescription
Hashint64yesAuthorization hash
BotIDint64yesBot ID
DomainstringyesThe domain name of the website on which the user has logged in.
BrowserstringyesBrowser user-agent
PlatformstringyesPlatform
DateCreatedintyesWhen was the web session created
DateActiveintyesWhen was the web session last active
IPstringyesIP address
RegionstringyesRegion, determined from IP address

References