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

1.2 KiB

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

Constructor: draftMessage

Back to constructors index

Draft message

Attributes:

Name Type Required Description
no_webpage Bool Optional No webpage?
reply_to_msg_id int Optional Reply to msg ID
message string Yes Message
entities Array of MessageEntity Optional Entities
date int Yes Date

Type: DraftMessage

Example:

$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int];

PWRTelegram json-encoded version:

{"_": "draftMessage", "no_webpage": Bool, "reply_to_msg_id": int, "message": "string", "entities": [MessageEntity], "date": int}

Or, if you're into Lua:

draftMessage={_='draftMessage', no_webpage=Bool, reply_to_msg_id=int, message='string', entities={MessageEntity}, date=int}