MadelineProtoDocs/old_docs/API_docs_v41/constructors/message.md

2.1 KiB

title description image
message Message https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: message

Back to constructors index

Message

Attributes:

Name Type Required Description
unread Bool Optional Unread?
out Bool Optional Out?
mentioned Bool Optional Mentioned?
media_unread Bool Optional Media unread?
id int Yes ID
from_id int Optional From ID
to_id Peer Yes To ID
fwd_from_id Peer Optional Forwarded from ID
fwd_date int Optional Forwarded date
reply_to_msg_id int Optional Reply to msg ID
date int Yes Date
message string Yes Message
media MessageMedia Optional Media
reply_markup ReplyMarkup Optional Reply markup
entities Array of MessageEntity Optional Entities
views int Optional Views

Type: Message

Example:

$message = ['_' => 'message', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int];

Or, if you're into Lua:

message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, id=int, from_id=int, to_id=Peer, fwd_from_id=Peer, fwd_date=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int}

Usage of reply_markup

You can provide bot API reply_markup objects here.