github.com/tada-team/tdproto@v1.51.57/server_tag_updated.go (about) 1 package tdproto 2 3 func NewServerTagUpdated(tags ...Tag) (r ServerTagUpdated) { 4 r.Name = r.GetName() 5 r.Params.Tags = tags 6 return r 7 } 8 9 // Tag created or changed 10 type ServerTagUpdated struct { 11 BaseEvent 12 Params serverTagUpdatedParams `json:"params"` 13 } 14 15 func (p ServerTagUpdated) GetName() string { return "server.tag.updated" } 16 17 // Params of the server.tag.updated event 18 type serverTagUpdatedParams struct { 19 // Tags info 20 Tags []Tag `json:"tags"` 21 }