messages.savePreparedInlineMessage
保存准备好的内联消息,由迷你应用程序的用户使用 web\_app\_send\_prepared\_message 事件共享
保存[准备好的内联消息](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message),由迷你应用程序的用户使用[web\_app\_send\_prepared\_message事件](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)共享
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
result | InputBotInlineResult | 是的 | 消息 |
user_id | InputUser | 是的 | 将向其发送 [web_app_send_prepared_message 事件](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) 事件的用户 |
peer_types | Vector<InlineQueryPeerType> | 否 | 可以发送此消息的聊天类型 |
回应
messages.BotPreparedInlineMessage
MTProto RPC
- 400 · RESULT_ID_INVALID — 指定的结果 ID 之一无效。
- 400 · SEND_MESSAGE_GAME_INVALID — inputBotInlineMessageGame 只能包含在 inputBotInlineResultGame 中,不能包含在 inputBotInlineResult/inputBotInlineResultPhoto/等中。
- 400 · USER_BOT_REQUIRED — 此方法只能由机器人调用。
- 400 · USER_ID_INVALID — 提供的用户 ID 无效。