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

x/grammy_menu/deps.deno.ts>InlineQueryContext

Interactive menus for grammY.
Latest
type alias InlineQueryContext
import { type InlineQueryContext } from "https://deno.land/x/grammy_menu@v1.3.0/deps.deno.ts";

Type of the context object that is available inside the handlers for bot.inlineQuery.

This helper type can be used to narrow down context objects the same way how annotate bot.inlineQuery does it. This allows you to context objects in middleware that is not directly passed to bot.inlineQuery, hence not inferring the correct type automatically. That way, handlers can be defined in separate files and still have the correct types.

definition: Filter<NarrowMatch<C, string | RegExpMatchArray>, "inline_query">