github.com/tada-team/tdproto@v1.51.57/client_call_trickle.go (about)

     1  package tdproto
     2  
     3  // Send trickle candidate for webrtc connection
     4  type ClientCallTrickle struct {
     5  	BaseEvent
     6  	Params clientCallTrickleParams `json:"params"`
     7  }
     8  
     9  func (p ClientCallTrickle) GetName() string { return "client.call.trickle" }
    10  
    11  // Params of client.call.trickle event
    12  type clientCallTrickleParams struct {
    13  	// Chat or contact id
    14  	Jid JID `json:"jid"`
    15  
    16  	// Trickle candidate
    17  	Candidate string `json:"candidate"`
    18  
    19  	// SDP mid
    20  	SdpMid string `json:"sdp_mid,omitempty"`
    21  
    22  	// SDP index
    23  	SdpMlineIndex int `json:"sdp_mline_index,omitempty"`
    24  }