telegram api constructor · layer 229 · #7a800e0a
messageService
Indicates a service message
definition
messageService#7a800e0a flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true reactions_are_possible:flags.9?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer saved_peer_id:flags.28?Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction reactions:flags.20?MessageReactions ttl_period:flags.25?int = Message;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
out | true | Whether the message is outgoing |
mentioned | true | Whether we were mentioned in the message |
media_unread | true | Whether the message contains unread media |
reactions_are_possible | true | Whether you can react to this message ». |
silent | true | Whether the message is silent |
post | true | Whether it's a channel post |
legacy | true | This is a legacy message: it has to be refetched with the new layer |
id | int | Message ID |
from_id | Peer | ID of the sender of this message |
peer_id | Peer | Sender of service message |
saved_peer_id | Peer | Will only be set for service messages within a monoforum topic »: peer will be equal to the ID of the monoforum and the saved_peer_id flag will be set to the ID of a topic. |
reply_to | MessageReplyHeader | Reply (thread) information |
date | int | Message date |
action | MessageAction | Event connected with the service message |
reactions | MessageReactions | Reactions ». |
ttl_period | 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. |
type
Message · other constructors: messageEmpty, message
history
present in layers 2–229 · constructor id changed 7×
| id | layers |
|---|---|
| #9f8d60bb | 2–16 |
| #1d86f70e | 17–23 |
| #c06b9607 | 46 |
| #9e19a1f6 | 62–118 |
| #286fa604 | 119–123 |
| #2b085862 | 124–195 |
| #d3d28540 | 196–204 |
| #7a800e0a | 205–229 |