MadelineProtoDocs/old_docs/API_docs_v41/constructors/messageService.md
2019-12-27 17:48:04 +01:00

1.5 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
unread Bool Optional Unread?
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
id int Yes Message ID
from_id int Optional Id of te sender of the message
to_id Peer Yes ID of the destination of the message
date int Yes Message date
action MessageAction Optional Event connected with the service message

Type: Message

Example:

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

Or, if you're into Lua:

messageService={_='messageService', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, id=int, from_id=int, to_id=Peer, date=int, action=MessageAction}