MadelineProtoDocs/old_docs/API_docs_v89/constructors/updateDraftMessage.md

46 lines
893 B
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: updateDraftMessage
description: Update draft message
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateDraftMessage
[Back to constructors index](index.md)
Update draft message
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[Peer](../types/Peer.md) | Yes|Peer|
|draft|[DraftMessage](../types/DraftMessage.md) | Optional|Draft|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateDraftMessage = ['_' => 'updateDraftMessage', 'peer' => Peer, 'draft' => DraftMessage];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateDraftMessage", "peer": Peer, "draft": DraftMessage}
```
Or, if you're into Lua:
```lua
updateDraftMessage={_='updateDraftMessage', peer=Peer, draft=DraftMessage}
```