MadelineProtoDocs/old_docs/API_docs_v43/constructors/messageService.md
2020-10-01 20:29:43 +02:00

1.9 KiB

title description image
messageService Indicates a service message https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageService

Back to constructors index

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
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 int Optional ID of the sender of this message
to_id Peer Yes ID of the destination of the message
reply_to_msg_id int Optional ID of the message this message replies to
date int Yes Message date
action MessageAction Optional Event connected with the service message

Type: Message

Example:

$messageService = ['_' => 'messageService', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'legacy' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'reply_to_msg_id' => int, 'date' => int, 'action' => MessageAction];

Or, if you're into Lua:

messageService={_='messageService', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, legacy=Bool, id=int, from_id=int, to_id=Peer, reply_to_msg_id=int, date=int, action=MessageAction}