Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/3_types.ts>UpdateCallbackQuery

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface UpdateCallbackQuery
import { type UpdateCallbackQuery } from "https://deno.land/x/mtkruto@0.1.157/3_types.ts";

A callback query was made (a user presses an inline button). Bot-only.

client.on("callbackQuery", async (ctx) => {
  await ctx.answerCallbackQuery(ctx.callbackQuery.data, { alert: true });
});

Properties

callbackQuery: CallbackQuery

The received callback query.