Layer 220
UpdateShortSentMessage
Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).
constructor
updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia 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 |
| Id | int | ID of the sent message |
| Pts | int | PTS |
| PtsCount | int | PTS count |
| Date | int | date |
| Media | flags.9?MessageMedia | Attached media |
| 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 UpdateShortSentMessage constructor obj := &tg.UpdateShortSentMessage{ Id: 0, Pts: 0, PtsCount: 0, Date: 0, // Optional fields: // Out: true, // Media: &tg.MessageMedia{}, // Entities: []tg.MessageEntity{&tg.MessageEntityBold{Offset: 0, Length: 4}}, // TtlPeriod: 0, }