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

1.3 KiB

title description
updateChatDraftMessage Chat draft has changed. Be aware that the update may come in the currently open chat with the old content of the draft. If the user has changed the content of the draft, the update shouldn't be applied

Constructor: updateChatDraftMessage

Back to constructors index

Chat draft has changed. Be aware that the update may come in the currently open chat with the old content of the draft. If the user has changed the content of the draft, the update shouldn't be applied

Attributes:

Name Type Required Description
chat_id long Yes Chat identifier
draft_message draftMessage Yes New chat draft_message, nullable

Type: Update

Example:

$updateChatDraftMessage = ['_' => 'updateChatDraftMessage', 'chat_id' => long, 'draft_message' => draftMessage];

PWRTelegram json-encoded version:

{"_": "updateChatDraftMessage", "chat_id": long, "draft_message": draftMessage}

Or, if you're into Lua:

updateChatDraftMessage={_='updateChatDraftMessage', chat_id=long, draft_message=draftMessage}