MadelineProtoDocs/old_docs/API_docs_v105/constructors/updateDraftMessage.md

40 lines
757 B
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02: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];
```
Or, if you're into Lua:
```lua
updateDraftMessage={_='updateDraftMessage', peer=Peer, draft=DraftMessage}
```