github.com/tada-team/tdproto@v1.51.57/server_contact_updated.go (about) 1 package tdproto 2 3 func NewServerContactUpdated(contacts ...Contact) (r ServerContactUpdated) { 4 r.Name = r.GetName() 5 r.Params.Contacts = contacts 6 return r 7 } 8 9 // Contact created or updated 10 type ServerContactUpdated struct { 11 BaseEvent 12 Params serverContactUpdatedParams `json:"params"` 13 } 14 15 func (p ServerContactUpdated) GetName() string { return "server.contact.updated" } 16 17 // Params of the server.contact.updated event 18 type serverContactUpdatedParams struct { 19 // Contact info 20 Contacts []Contact `json:"contacts"` 21 }