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

     1  package tdproto
     2  
     3  func NewServerMessagePush(p MessagePush) (r ServerMessagePush) {
     4  	r.Name = r.GetName()
     5  	r.Params = p
     6  	return r
     7  }
     8  
     9  // Push replacement for desktop application
    10  type ServerMessagePush struct {
    11  	BaseEvent
    12  	Params MessagePush `json:"params"`
    13  }
    14  
    15  func (p ServerMessagePush) GetName() string { return "server.message.push" }