github.com/tada-team/tdproto@v1.51.57/session.go (about) 1 package tdproto 2 3 // Websocket session 4 type Session struct { 5 // Session id 6 Uid string `json:"uid"` 7 8 // Creation datetime 9 Created ISODateTimeString `json:"created"` 10 11 // Language code 12 Lang string `json:"lang,omitempty"` 13 14 // Team id 15 Team string `json:"team,omitempty"` 16 17 // Mobile 18 IsMobile bool `json:"is_mobile,omitempty"` 19 20 // Away from keyboard 21 Afk bool `json:"afk,omitempty"` 22 23 // User agent 24 Useragent string `json:"useragent,omitempty"` 25 26 // IP address 27 Addr string `json:"addr,omitempty"` 28 }