github.com/tada-team/tdproto@v1.51.57/server_logout.go (about) 1 package tdproto 2 3 func NewServerLogout(reason string) (r ServerLogout) { 4 r.Name = r.GetName() 5 r.Params.Reason = reason 6 return r 7 } 8 9 type ServerLogout struct { 10 BaseEvent 11 Params serverLogoutParams `json:"params"` 12 } 13 14 func (p ServerLogout) GetName() string { return "server.logout" } 15 16 // Params of the server.logout event 17 type serverLogoutParams struct { 18 // Reason 19 Reason string `json:"reason"` 20 }