github.com/tada-team/tdproto@v1.51.57/short_message.go (about) 1 package tdproto 2 3 // Short message based on chat message 4 type ShortMessage struct { 5 // Sender contact id 6 From JID `json:"from" tdproto:"readonly"` 7 8 // Recipient id (group, task or contact) 9 To JID `json:"to"` 10 11 // Message uid 12 MessageId string `json:"message_id"` 13 14 // Message creation datetime (set by server side) or sending datetime in future for draft messages 15 Created ISODateTimeString `json:"created" tdproto:"readonly"` 16 17 // Object version 18 Gentime int64 `json:"gentime" tdproto:"readonly"` 19 20 // Chat type 21 ChatType ChatType `json:"chat_type" tdproto:"readonly"` 22 23 // Chat id 24 Chat JID `json:"chat" tdproto:"readonly"` 25 26 // This message is archive. True or null 27 IsArchive bool `json:"is_archive,omitempty" tdproto:"readonly"` 28 } 29 30 // Upload + ShortMessage 31 type UploadShortMessage struct { 32 // Upload information 33 Upload Upload `json:"upload"` 34 35 // Short message information 36 Message ShortMessage `json:"message"` 37 }