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

     1  package tdproto
     2  
     3  func NewServerCallLeave(jid JID, uid string) (r ServerCallLeave) {
     4  	r.Name = r.GetName()
     5  	r.Params.Jid = jid
     6  	r.Params.Uid = uid
     7  	return r
     8  }
     9  
    10  // Participant leave a call
    11  type ServerCallLeave struct {
    12  	BaseEvent
    13  	Params serverCallLeaveParams `json:"params"`
    14  }
    15  
    16  func (p ServerCallLeave) GetName() string { return "server.call.leave" }
    17  
    18  // Params of the server.call.leave event
    19  type serverCallLeaveParams struct {
    20  	// Chat or contact id
    21  	Jid JID `json:"jid"`
    22  
    23  	// Call uid
    24  	Uid string `json:"uid"`
    25  }