Constructor: messageService
Indicates a service message
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| out | Bool | Optional | Whether the message is outgoing |
| mentioned | Bool | Optional | Whether we were mentioned in the message |
| media_unread | Bool | Optional | Whether the message contains unread media |
| reactions_are_possible | Bool | Optional | Whether you can react to this message ». |
| silent | Bool | Optional | Whether the message is silent |
| post | Bool | Optional | Whether it’s a channel post |
| legacy | Bool | Optional | This is a legacy message: it has to be refetched with the new layer |
| id | int | Yes | Message ID |
| from_id | Peer | Optional | ID of the sender of this message |
| peer_id | Peer | Yes | Sender of service message |
| saved_peer_id | Peer | Optional | 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 | Optional | Reply (thread) information |
| date | int | Yes | Message date |
| action | MessageAction | Optional | Event connected with the service message |
| reactions | MessageReactions | Optional | Reactions ». |
| ttl_period | int | Optional | 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
Example:
$messageService = ['_' => 'messageService', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'reactions_are_possible' => Bool, 'silent' => Bool, 'post' => Bool, 'legacy' => Bool, 'id' => int, 'from_id' => Peer, 'peer_id' => Peer, 'saved_peer_id' => Peer, 'reply_to' => MessageReplyHeader, 'date' => int, 'action' => MessageAction, 'reactions' => MessageReactions, 'ttl_period' => int];