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

x/mtkruto/tl/3_functions.ts>messages_setInlineBotResults_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_setInlineBotResults_
extends Function_<boolean>
import { messages_setInlineBotResults_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Answer an inline query, for bots only

Constructors

new
messages_setInlineBotResults_(params: { gallery?: true; private?: true; query_id: bigint; results: Array<enums.InputBotInlineResult>; cache_time: number; next_offset?: string; switch_pm?: enums.InlineBotSwitchPM; switch_webview?: enums.InlineBotWebView; })

Properties

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

The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.

optional
next_offset: string

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.

optional
private: true

Set 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

query_id: bigint

Unique identifier for the answered query

results: Array<enums.InputBotInlineResult>

Vector of results for the inline query

optional
switch_pm: enums.InlineBotSwitchPM

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

optional
switch_webview: enums.InlineBotWebView

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

Static Properties

__F: (params: { gallery?: true; private?: true; query_id: bigint; results: Array<enums.InputBotInlineResult>; cache_time: number; next_offset?: string; switch_pm?: enums.InlineBotSwitchPM; switch_webview?: enums.InlineBotWebView; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc