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

     1  package tdproto
     2  
     3  func NewServerAccountUpdated(account PersonalAccountBilling) (r ServerAccountUpdated) {
     4  	r.Name = r.GetName()
     5  	r.Params.Account = account
     6  	return r
     7  }
     8  
     9  // Personal Account created or updated
    10  type ServerAccountUpdated struct {
    11  	BaseEvent
    12  	Params serverAccountUpdatedParams `json:"params"`
    13  }
    14  
    15  func (p ServerAccountUpdated) GetName() string { return "server.account.updated" }
    16  
    17  // Params of the server.account.updated event
    18  type serverAccountUpdatedParams struct {
    19  	// Personal Account info
    20  	Account PersonalAccountBilling `json:"account"`
    21  }