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 schema is available as of layer 53. Switch ยป
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 |
pts_count | int | PTS count |
date | int | date |
media | flags.9?MessageMedia | Attached media |
entities | flags.7?Vector<MessageEntity> | Entities for styled text |
ttl_period | 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. |
How to subscribe to updates and handle them properly.
How to create styled text with message entities