Skip to main content

updateShortMessage

Info about a message sent to (received from) another user

type tg.UpdateShortMessage struct { /* ... */ }

Implements Updates.

Fields​

NameTypeRequiredDescription
Outbool—Whether the message is outgoing
Mentionedbool—Whether we were mentioned in the message
MediaUnreadbool—Whether there are some unread mentions in this message
Silentbool—If true, the message is a silent message, no notifications should be triggered
IDintyesThe message ID
UserIDint64yesThe ID of the sender (if outgoing will be the ID of the destination) of the message
MessagestringyesThe message
PtsintyesPTS
PtsCountintyesPTS count
Dateintyesdate
FwdFromMessageFwdHeader—Info about a forwarded message
ViaBotIDint64—Info about the inline bot used to generate this message
ReplyToMessageReplyHeaderClass—Reply and thread information
Entities[]MessageEntityClass—Entities for styled text
TTLPeriodint—Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.

References​