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

x/mtkruto/mod.ts>UpdateCallbackQuery

Cross-runtime JavaScript library for building Telegram clients
Latest
interface UpdateCallbackQuery
import { type UpdateCallbackQuery } from "https://deno.land/x/mtkruto@0.6.3/mod.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