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

     1  package tdproto
     2  
     3  func NewClientChatLastread(jid JID, messageId *string) (r ClientChatLastread) {
     4  	r.Name = r.GetName()
     5  	r.ConfirmId = ConfirmId()
     6  	r.Params.Jid = jid
     7  	r.Params.LastReadMessageId = messageId
     8  	return r
     9  }
    10  
    11  // Last read message in chat changed
    12  type ClientChatLastread struct {
    13  	BaseEvent
    14  	Params clientChatLastreadParams `json:"params"`
    15  }
    16  
    17  func (p ClientChatLastread) GetName() string { return "client.chat.lastread" }
    18  
    19  // Params of the client.chat.lastread event
    20  type clientChatLastreadParams struct {
    21  	// Chat or contact id
    22  	Jid JID `json:"jid"`
    23  
    24  	// Last read message id. Omitted = last message in chat
    25  	LastReadMessageId *string `json:"last_read_message_id,omitempty"`
    26  }