Layer 220
UpdateShortMessage
Info about a message sent to (received from) another user
constructor
updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Out | flags.1?true | Whether the message is outgoing |
| Mentioned | flags.4?true | Whether we were mentioned in the message |
| MediaUnread | flags.5?true | Whether there are some unread mentions in this message |
| Silent | flags.13?true | If true, the message is a silent message, no notifications should be triggered |
| Id | int | The message ID |
| UserId | long | The ID of the sender (if outgoing will be the ID of the destination) of the message |
| Message | string | The message |
| Pts | int | PTS |
| PtsCount | int | PTS count |
| Date | int | date |
| FwdFrom | flags.2?MessageFwdHeader | Info about a forwarded message |
| ViaBotId | flags.11?long | Info about the inline bot used to generate this message |
| ReplyTo | flags.3?MessageReplyHeader | Reply and thread information |
| Entities | Vector<MessageEntity> | Entities for styled text |
| TtlPeriod | flags.25?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. |
Returns
UpdatesGogram Example
// Creating UpdateShortMessage constructor obj := &tg.UpdateShortMessage{ Id: 0, UserId: int64(0), Message: "...", Pts: 0, PtsCount: 0, Date: 0, // Optional fields: // Out: true, // Mentioned: true, // MediaUnread: true, // Silent: true, // ... more optional fields }