github.com/tada-team/tdproto@v1.51.57/client_call_offer.go (about) 1 package tdproto 2 3 // Start a call 4 type ClientCallOffer struct { 5 BaseEvent 6 Params clientCallOfferParams `json:"params"` 7 } 8 9 func (p ClientCallOffer) GetName() string { return "client.call.offer" } 10 11 // Params of the client.call.offer event 12 type clientCallOfferParams struct { 13 // Chat or contact id 14 Jid JID `json:"jid"` 15 16 // Mute state 17 // Deprecated: use EnabledAudio 18 Muted bool `json:"muted"` 19 20 // Is trickle mode enabled 21 Trickle bool `json:"trickle"` 22 23 // SDP (session description protocol) data 24 Sdp string `json:"sdp"` 25 26 // CallType is a type of call("audio" - audio room, "video" - video room). default = "audio" 27 CallType CallType `json:"call_type,omitempty"` 28 29 // Audio state 30 EnabledAudio bool `json:"enabled_audio,omitempty"` 31 32 // Video state 33 EnabledVideo bool `json:"enabled_video,omitempty"` 34 }