github.com/tada-team/tdproto@v1.51.57/server_call_muteall.go (about) 1 package tdproto 2 3 func NewServerCallMuteall(jid JID, muted bool) (r ServerCallMuteall) { 4 r.Name = r.GetName() 5 r.Params.Jid = jid 6 r.Params.Muted = muted 7 return r 8 } 9 10 // All participants in call muted 11 type ServerCallMuteall struct { 12 BaseEvent 13 Params serverCallMuteallParams `json:"params"` 14 } 15 16 func (p ServerCallMuteall) GetName() string { return "server.call.muteall" } 17 18 // Params of the server.call.muteall event 19 type serverCallMuteallParams struct { 20 // Chat or contact id 21 Jid JID `json:"jid"` 22 23 // Mute state 24 Muted bool `json:"muted"` 25 }