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