Raw.messages.BotResults
Result of a query to an inline bot
messages.botResults#e021f2f6 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM switch_webview:flags.3?InlineBotWebView results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults;
export namespace Raw {
export namespace messages {
export class BotResults {
constructor(params: {
gallery?: boolean;
queryId: bigint;
nextOffset?: string;
switchPm?: Raw.TypeInlineBotSwitchPM;
switchWebview?: Raw.TypeInlineBotWebView;
results: Array<Raw.TypeBotInlineResult>;
cacheTime: number;
users: Array<Raw.TypeUser>;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xe021f2f6
Property
gallery
: boolean or undefinedWhether the result is a picture gallery
queryId
: bigintQuery id
nextOffset
: string or undefinedThe next offset to use when navigating through results
switchPm
: Raw.TypeInlineBotSwitchPM or undefinedShown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter.
switchWebview
: Raw.TypeInlineBotWebView or undefinedShown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app.
results
: Array of Raw.TypeBotInlineResultThe results
cacheTime
: numberCaching validity of the results
users
: Array of Raw.TypeUserUsers mentioned in the results