MadelineProtoDocs/old_docs/API_docs_v20/constructors/draftMessage.md
2020-06-16 17:50:25 +02:00

1.3 KiB

title description image
draftMessage Represents a message [draft](https://core.telegram.org/api/drafts). https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: draftMessage

Back to constructors index

Represents a message draft.

Attributes:

Name Type Required Description
no_webpage Bool Optional Whether no webpage preview will be generated
reply_to_msg_id int Optional The message this message will reply to
message string Yes The draft
entities Array of MessageEntity Optional Message entities for styled text.
date int Yes Date of last update of the draft.

Type: DraftMessage

Example:

$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, 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}