1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 14:27:00 +01:00
MadelineProto/docs/TD_docs/constructors/draftMessage.md

46 lines
1.1 KiB
Markdown
Raw Normal View History

---
title: draftMessage
description: Contains information about draft of a message
---
## Constructor: draftMessage
[Back to constructors index](index.md)
Contains information about draft of a message
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|reply\_to\_message\_id|[long](../types/long.md) | Yes|Identifier of a message to reply to or 0|
|input\_message\_text|[InputMessageContent](../types/InputMessageContent.md) | Yes|Content of a draft message, always should be of a type inputMessageText|
### Type: [DraftMessage](../types/DraftMessage.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$draftMessage = ['_' => 'draftMessage', 'reply_to_message_id' => long, 'input_message_text' => InputMessageContent];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "draftMessage", "reply_to_message_id": long, "input_message_text": InputMessageContent}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
draftMessage={_='draftMessage', reply_to_message_id=long, input_message_text=InputMessageContent}
```