messageService
Indicates a service message
type tg.MessageService struct { /* ... */ }
Implements Message.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Out | bool | — | Whether the message is outgoing |
Mentioned | bool | — | Whether we were mentioned in the message |
MediaUnread | bool | — | Whether the message contains unread media |
ReactionsArePossible | bool | — | Whether you can react to this message ». |
Silent | bool | — | Whether the message is silent |
Post | bool | — | Whether it's a channel post |
Legacy | bool | — | This is a legacy message: it has to be refetched with the new layer |
ID | int | yes | Message ID |
FromID | PeerClass | — | ID of the sender of this message |
PeerID | PeerClass | yes | Sender of service message |
SavedPeerID | PeerClass | — | 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. |
ReplyTo | MessageReplyHeaderClass | — | Reply (thread) information |
Date | int | yes | Message date |
Action | MessageActionClass | yes | Event connected with the service message |
Reactions | MessageReactions | — | Reactions ». |
TTLPeriod | 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messageService#7a800e0a