Skip to main content

updateShortMessage

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

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

Implements Updates.

Fields

NameTypeRequiredDescription
OutboolWhether the message is outgoing
MentionedboolWhether we were mentioned in the message
MediaUnreadboolWhether there are some unread mentions in this message
SilentboolIf 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
FwdFromMessageFwdHeaderInfo about a forwarded message
ViaBotIDint64Info about the inline bot used to generate this message
ReplyToMessageReplyHeaderClassReply and thread information
Entities[]MessageEntityClassEntities for styled text
TTLPeriodintTime 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