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> | いいえ | スタイル付きテキストのメッセージ [entities](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.