MadelineProtoDocs/old_docs/API_docs_v25/constructors/message.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.5 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
id int Yes ID
from_id int Yes From ID
to_id Peer Yes To ID
fwd_from_id int 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

Type: Message

Example:

$message = ['_' => 'message', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from_id' => int, 'fwd_date' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia];

PWRTelegram json-encoded version:

{"_": "message", "id": int, "from_id": int, "to_id": Peer, "fwd_from_id": int, "fwd_date": int, "reply_to_msg_id": int, "date": int, "message": "string", "media": MessageMedia}

Or, if you're into Lua:

message={_='message', id=int, from_id=int, to_id=Peer, fwd_from_id=int, fwd_date=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia}