Constructor: message

Back to constructors index



Name Type Required Description
out Bool Optional Out?
mentioned Bool Optional Mentioned?
media_unread Bool Optional Media unread?
silent Bool Optional Silent?
post Bool Optional Post?
from_scheduled Bool Optional From scheduled?
legacy Bool Optional Legacy message
edit_hide Bool Optional Whether to hide that the message was edited?
id int Yes ID
from_id int Optional From ID
to_id Peer Yes To ID
fwd_from MessageFwdHeader Optional Forwarded from
via_bot_id int Optional Via bot ID
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
edit_date int Optional Edit date
post_author string Optional Post author
grouped_id long Optional Grouped ID
restriction_reason Array of RestrictionReason Optional Restriction reason

Type: Message


$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'from_scheduled' => Bool, 'legacy' => Bool, 'edit_hide' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int, 'edit_date' => int, 'post_author' => 'string', 'grouped_id' => long, 'restriction_reason' => [RestrictionReason, RestrictionReason]];

Or, if you’re into Lua:

message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, from_scheduled=Bool, legacy=Bool, edit_hide=Bool, id=int, from_id=int, to_id=Peer, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int, edit_date=int, post_author='string', grouped_id=long, restriction_reason={RestrictionReason}}

Usage of reply_markup

You can provide bot API reply_markup objects here.

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.