MadelineProtoDocs/old_docs/API_docs_v95/constructors/updateDraftMessage.md

40 lines
912 B
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: updateDraftMessage
2019-12-27 17:48:04 +01:00
description: Notifies a change of a message [draft](https://core.telegram.org/api/drafts).
2019-03-29 21:12:30 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateDraftMessage
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Notifies a change of a message [draft](https://core.telegram.org/api/drafts).
2019-03-29 21:12:30 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|peer|[Peer](../types/Peer.md) | Yes|The peer to which the draft is associated|
|draft|[DraftMessage](../types/DraftMessage.md) | Optional|The draft|
2019-03-29 21:12:30 +01:00
### 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}
```