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