Skip to main content

messageService

Indicates a service message

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

Implements Message.

Fields

NameTypeRequiredDescription
OutboolWhether the message is outgoing
MentionedboolWhether we were mentioned in the message
MediaUnreadboolWhether the message contains unread media
ReactionsArePossibleboolWhether you can react to this message ».
SilentboolWhether the message is silent
PostboolWhether it's a channel post
LegacyboolThis is a legacy message: it has to be refetched with the new layer
IDintyesMessage ID
FromIDPeerClassID of the sender of this message
PeerIDPeerClassyesSender of service message
SavedPeerIDPeerClassWill 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.
ReplyToMessageReplyHeaderClassReply (thread) information
DateintyesMessage date
ActionMessageActionClassyesEvent connected with the service message
ReactionsMessageReactionsReactions ».
TTLPeriodintTime 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