Skip to content

Commit

Permalink
Session
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Oct 25, 2020
1 parent f4db039 commit 3bef032
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions session.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package tdproto

// Websocket session
type Session struct {
// Session id
Uid string `json:"uid"`

// Creation datetime
Created string `json:"created"`

// Language code
Lang string `json:"lang,omitempty"`

// Team id
Team string `json:"team,omitempty"`

// Mobile
IsMobile bool `json:"is_mobile,omitempty"`

// Away from keyboard
Afk bool `json:"afk,omitempty"`

// User agent
Useragent string `json:"useragent,omitempty"`

// IP address
Addr string `json:"addr,omitempty"`
}

0 comments on commit 3bef032

Please sign in to comment.