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

     1  package tdproto
     2  
     3  func NewClientConfirm(confirmId string) (r ClientConfirm) {
     4  	r.Name = r.GetName()
     5  	r.Params.ConfirmId = confirmId
     6  	return r
     7  }
     8  
     9  // Client confirmed server message
    10  type ClientConfirm struct {
    11  	BaseEvent
    12  	Params clientConfirmParams `json:"params"`
    13  }
    14  
    15  func (p ClientConfirm) GetName() string { return "client.confirm" }
    16  
    17  // Params of the client.confirm event
    18  type clientConfirmParams struct {
    19  	// Unique identifier generated by client
    20  	ConfirmId string `json:"confirm_id"`
    21  }