messages.saveDraft
Save a message draft associated to a chat.
Save a message [draft](https://core.telegram.org/api/drafts.md) associated to a chat.
| Name | Type | Required | Description |
|---|---|---|---|
no_webpage | true | No | Disable generation of the webpage preview |
invert_media | true | No | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
reply_to | InputReplyTo | No | If set, indicates that the message should be sent in reply to the specified message or story. |
peer | InputPeer | Yes | Destination of the message that should be sent |
message | string | Yes | The draft |
entities | Vector<MessageEntity> | No | Message [entities](https://core.telegram.org/api/entities.md) for styled text |
media | InputMedia | No | Attached media |
effect | long | No | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |
suggested_post | SuggestedPost | No | Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow. |
rich_message | InputRichMessage | No | Тип TL: InputRichMessage. |
Responses
Bool
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
- 400 · ENTITY_BOUNDS_INVALID — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here »](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.
- 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.