MadelineProto/docs/TD_docs/constructors/draftMessage.md
2017-07-23 16:33:46 +02:00

1.1 KiB

title description
draftMessage Contains information about draft of a message

Constructor: draftMessage

Back to constructors index

Contains information about draft of a message

Attributes:

Name Type Required Description
reply_to_message_id long Yes Identifier of a message to reply to or 0
input_message_text InputMessageContent Yes Content of a draft message, always should be of a type inputMessageText

Type: DraftMessage

Example:

$draftMessage = ['_' => 'draftMessage', 'reply_to_message_id' => long, 'input_message_text' => InputMessageContent];

PWRTelegram json-encoded version:

{"_": "draftMessage", "reply_to_message_id": long, "input_message_text": InputMessageContent}

Or, if you're into Lua:

draftMessage={_='draftMessage', reply_to_message_id=long, input_message_text=InputMessageContent}