Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>messages_BotResults_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_BotResults_
import { messages_BotResults_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Result of a query to an inline bot

Constructors

new
messages_BotResults_(params: { gallery?: true; query_id: bigint; next_offset?: string; switch_pm?: enums.InlineBotSwitchPM; switch_webview?: enums.InlineBotWebView; results: Array<enums.BotInlineResult>; cache_time: number; users: Array<enums.User>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
cache_time: number

Caching validity of the results

optional
next_offset: string

The next offset to use when navigating through results

query_id: bigint

Query ID

results: Array<enums.BotInlineResult>

The results

optional
switch_pm: enums.InlineBotSwitchPM

Shown 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.

optional
switch_webview: enums.InlineBotWebView

Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app.

users: Array<enums.User>

Users mentioned in the results

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc