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