messages.savePreparedInlineMessage
Save a prepared inline message, to be shared by the user of the mini app using a web\_app\_send\_prepared\_message event
Save a [prepared inline message](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message), to be shared by the user of the mini app using a [web\_app\_send\_prepared\_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
result | InputBotInlineResult | أيوه | الرسالة |
user_id | InputUser | أيوه | The user to whom the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) event will be sent |
peer_types | Vector<InlineQueryPeerType> | لأ | أنواع الدردشات التي يمكن إرسال هذه الرسالة إليها |
الردود
messages.BotPreparedInlineMessage
MTProto RPC
- 400 · RESULT_ID_INVALID — One of the specified result IDs is invalid.
- 400 · SEND_MESSAGE_GAME_INVALID — An inputBotInlineMessageGame can only be contained in an inputBotInlineResultGame, not in an inputBotInlineResult/inputBotInlineResultPhoto/etc.
- 400 · USER_BOT_REQUIRED — This method can only be called by a bot.
- 400 · USER_ID_INVALID — The provided user ID is invalid.