updateShortMessage
Info about a message sent to (received from) another user
type tg.UpdateShortMessage struct { /* ... */ }
Implements Updates.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Out | bool | — | Whether the message is outgoing |
Mentioned | bool | — | Whether we were mentioned in the message |
MediaUnread | bool | — | Whether there are some unread mentions in this message |
Silent | bool | — | If true, the message is a silent message, no notifications should be triggered |
ID | int | yes | The message ID |
UserID | int64 | yes | The ID of the sender (if outgoing will be the ID of the destination) of the message |
Message | string | yes | The message |
Pts | int | yes | PTS |
PtsCount | int | yes | PTS count |
Date | int | yes | date |
FwdFrom | MessageFwdHeader | — | Info about a forwarded message |
ViaBotID | int64 | — | Info about the inline bot used to generate this message |
ReplyTo | MessageReplyHeaderClass | — | Reply and thread information |
Entities | []MessageEntityClass | — | Entities for styled text |
TTLPeriod | int | — | 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
- Official documentation
- Generated Go reference
- TL definition:
updateShortMessage#313bc7f8