Skip to content

savePreparedInlineMessage

Returns PreparedInlineMessage

Stores a message that can be sent by a user of a Mini App.

Required: user_id, result · Optional: 4 parameters

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("save_prepared_inline_message", {
user_id: 0,
result: { /* InlineQueryResult */ }
})

Parameters

user_id number Required
Unique identifier of the target user that can use the prepared message.

result InlineQueryResult Required
A JSON-serialized object describing the message to be sent.

allow_user_chats boolean
Pass True if the message can be sent to private chats with users.

allow_bot_chats boolean
Pass True if the message can be sent to private chats with bots.

allow_group_chats boolean
Pass True if the message can be sent to group and supergroup chats.

allow_channel_chats boolean
Pass True if the message can be sent to channel chats.