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.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
no_webpage | true | لأ | Disable generation of the webpage preview |
invert_media | true | لأ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
reply_to | InputReplyTo | لأ | If set, indicates that the message should be sent in reply to the specified message or story. |
peer | InputPeer | أيوه | Destination of the message that should be sent |
message | string | أيوه | The draft |
entities | Vector<MessageEntity> | لأ | أرسل رسالة [الكيانات](https://core.telegram.org/api/entities.md) للنص المصمم |
media | InputMedia | لأ | الوسائط المرفقة |
effect | long | لأ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |
suggested_post | SuggestedPost | لأ | 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 | لأ | Тип TL: InputRichMessage. |
الردود
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.