Skip to main content

messageService

Indicates a service message

type tg.MessageService struct { /* ... */ }

Implements Message.

Fields​

NameTypeRequiredDescription
Outbool—Whether the message is outgoing
Mentionedbool—Whether we were mentioned in the message
MediaUnreadbool—Whether the message contains unread media
ReactionsArePossiblebool—Whether you can react to this message ».
Silentbool—Whether the message is silent
Postbool—Whether it's a channel post
Legacybool—This is a legacy message: it has to be refetched with the new layer
IDintyesMessage ID
FromIDPeerClass—ID of the sender of this message
PeerIDPeerClassyesSender of service message
SavedPeerIDPeerClass—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.
ReplyToMessageReplyHeaderClass—Reply (thread) information
DateintyesMessage date
ActionMessageActionClassyesEvent connected with the service message
ReactionsMessageReactions—Reactions ».
TTLPeriodint—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​