Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
type alias ChosenInlineResultContext
import { type ChosenInlineResultContext } from "https://deno.land/x/grammy@v1.21.1/context.ts";

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

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

definition: Filter<C, "chosen_inline_result">