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

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