github.com/tada-team/tdproto@v1.51.57/server_section_updated.go (about) 1 package tdproto 2 3 func NewServerSectionUpdated(ct ChatType, sections ...Section) (r ServerSectionUpdated) { 4 r.Name = r.GetName() 5 r.Params.ChatType = ct 6 r.Params.Gentime = Gentime() // XXX 7 r.Params.Sections = sections 8 return r 9 } 10 11 // Contact section or task project created or changed 12 type ServerSectionUpdated struct { 13 BaseEvent 14 Params serverSectionUpdatedParams `json:"params"` 15 } 16 17 func (p ServerSectionUpdated) GetName() string { return "server.section.updated" } 18 19 // Params of the server.section.updated event 20 type serverSectionUpdatedParams struct { 21 // Chat type 22 ChatType ChatType `json:"chat_type"` 23 24 // Section/project info 25 Sections []Section `json:"sections"` 26 27 // deprecated 28 Gentime int64 `json:"gentime"` 29 }