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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
no_webpage | true | Nein | Disable generation of the webpage preview |
invert_media | true | Nein | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
reply_to | InputReplyTo | Nein | If set, indicates that the message should be sent in reply to the specified message or story. |
peer | InputPeer | Ja | Destination of the message that should be sent |
message | string | Ja | The draft |
entities | Vector<MessageEntity> | Nein | Nachricht [entities](https://core.telegram.org/api/entities.md) für formatierten Text |
media | InputMedia | Nein | Angehängte Medien |
effect | long | Nein | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |
suggested_post | SuggestedPost | Nein | 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 | Nein | Тип TL: InputRichMessage. |
Antworten
Bool
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
- 403 · CHAT_WRITE_FORBIDDEN — Sie können in diesem Chat nicht schreiben.
- 400 · ENTITY_BOUNDS_INVALID – Ein angegebener [Entitätsversatz oder eine angegebene Entitätslänge](https://core.telegram.org/api/entities.md#entity-length) ist ungültig, siehe [hier »](https://core.telegram.org/api/entities.md#entity-length) für Informationen zur richtigen Berechnung des Entitätsversatzes/der Entitätslänge.
- 400 · INPUT_USER_DEACTIVATED – Der angegebene Benutzer wurde gelöscht.
- 400 · MSG_ID_INVALID – Ungültige Nachrichten-ID angegeben.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.