MadelineProto/docs/TD_docs/constructors/updateChatDraftMessage.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

46 lines
1.3 KiB
Markdown

---
title: updateChatDraftMessage
description: 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](index.md)
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](../types/long.md) | Yes|Chat identifier|
|draft\_message|[draftMessage](../types/draftMessage.md) | Yes|New chat draft_message, nullable|
### Type: [Update](../types/Update.md)
### Example:
```
$updateChatDraftMessage = ['_' => 'updateChatDraftMessage', 'chat_id' => long, 'draft_message' => draftMessage];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateChatDraftMessage", "chat_id": long, "draft_message": draftMessage}
```
Or, if you're into Lua:
```
updateChatDraftMessage={_='updateChatDraftMessage', chat_id=long, draft_message=draftMessage}
```