Raw.messages.SetInlineBotResults
Answer an inline query, for bots only
messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector<InputBotInlineResult> cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool;
export namespace Raw {
export namespace messages {
export class SetInlineBotResults {
constructor(params: {
gallery?: boolean;
private?: boolean;
queryId: bigint;
results: Array<Raw.TypeInputBotInlineResult>;
cacheTime: number;
nextOffset?: string;
switchPm?: Raw.TypeInlineBotSwitchPM;
switchWebview?: Raw.TypeInlineBotWebView;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xbb12a419
Property
gallery
: boolean or undefinedSet this flag if the results are composed of media files
private
: boolean or undefinedSet this flag 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
queryId
: bigintUnique identifier for the answered query
results
: Array of Raw.TypeInputBotInlineResultVector of results for the inline query
cacheTime
: numberThe maximum amount of time in seconds that the result of the inline query may be cached on the server. defaults to 300.
nextOffset
: string or undefinedPass 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.
switchPm
: Raw.TypeInlineBotSwitchPM or undefinedIf passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter.
switchWebview
: Raw.TypeInlineBotWebView or undefinedIf passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified inline mode mini app.