Skip to main content

Built and signed on GitHub Actions

Code-generated and Auto-published Telegram Bot API types

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a month ago (8.3.3)
property APIMethods.answerCallbackQuery

Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.

Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @BotFather and accept the terms. Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.

Documentation

Type

CallAPI<Params.AnswerCallbackQueryParams, true>

Add Package

deno add jsr:@gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

---- OR ----

Import directly with a jsr specifier

import { type APIMethods } from "jsr:@gramio/types";

Add Package

npx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

Add Package

yarn dlx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

Add Package

pnpm dlx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";

Add Package

bunx jsr add @gramio/types

Import symbol

import { type APIMethods } from "@gramio/types";