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

912 B

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

Constructor: updateDraftMessage

Back to constructors index

Notifies a change of a message draft.

Attributes:

Name Type Required Description
peer Peer Yes The peer to which the draft is associated
draft DraftMessage Optional The draft

Type: Update

Example:

$updateDraftMessage = ['_' => 'updateDraftMessage', 'peer' => Peer, 'draft' => DraftMessage];

Or, if you're into Lua:

updateDraftMessage={_='updateDraftMessage', peer=Peer, draft=DraftMessage}