Skip to main content

updateShortChatMessage

Shortened constructor containing info on one new incoming text message from a chat

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

Implements Updates.

Fields​

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

References​