import { TelegramInlineQuery, TelegramInlineQueryResult } from '../../../types'; import { Context } from '../../core'; import { LocationContext, UserContext } from '../../../migrated'; export declare class InlineQueryContext extends Context { id: string; user: UserContext; query: string; offset: string; location: LocationContext | undefined; chatType: import("../../../types").TelegramChatType | undefined; arguments: any; /** * Use this method to send answers to an inline query. On success, True is returned. * * No more than 50 results per query are allowed. * * @param results - An array of inline query results. * @param options - Optional parameters. * @param options.cache_time - The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300. * @param options.is_personal - Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query. * @param options.next_offset - Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don t support pagination. Offset length can t exceed 64 bytes. * @param options.switch_pm_text - If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter. * @param options.switch_pm_parameter - Parameter for the start message sent to the bot when user presses the switch button. * @returns A promise that resolves with a boolean indicating whether the query was answered successfully. */ answer(results: TelegramInlineQueryResult[], options?: { cache_time?: number; is_personal?: boolean; next_offset?: string; switch_pm_text?: string; switch_pm_parameter?: string; }): Promise; }