import { ErrorUnion, MessageUnion } from '../outputs'; /** * Sends the result of an inline query as a message. Returns the sent message. Always * clears a chat draft message * @param {Object} params * @param {number} [params.chatId] - Target chat * @param {number} [params.replyToMessageId] - Identifier of a message to reply to * or 0 * @param {boolean} [params.disableNotification] - Pass true to disable notification * for the message. Not supported in secret chats * @param {boolean} [params.fromBackground] - Pass true if the message is sent from * background * @param {string} [params.queryId] - Identifier of the inline query * @param {string} [params.resultId] - Identifier of the inline result * @param {boolean} [params.hideViaBot] - If true, there will be no mention of a * bot, via which the message is sent. Can be used only for bots GetOption("animation_search_bot_username"), * GetOption("photo_search_bot_username") and GetOption("venue_search_bot_username") * @param {Object} state * @returns {MessageUnion | ErrorUnion} */ export declare type SendInlineQueryResultMessageMethod = (params: SendInlineQueryResultMessageParams, state?: Record) => Promise; export interface SendInlineQueryResultMessageParams { /** Target chat */ chatId?: number; /** Identifier of a message to reply to or 0 */ replyToMessageId?: number; /** Pass true to disable notification for the message. Not supported in secret chats */ disableNotification?: boolean; /** Pass true if the message is sent from background */ fromBackground?: boolean; /** Identifier of the inline query */ queryId?: string; /** Identifier of the inline result */ resultId?: string; /** * If true, there will be no mention of a bot, via which the message is sent. Can be * used only for bots GetOption("animation_search_bot_username"), GetOption("photo_search_bot_username") * and GetOption("venue_search_bot_username") */ hideViaBot?: boolean; }