Module

x/grammy/context.ts>ShippingQueryContext

The Telegram Bot Framework.
Very Popular
Latest
type alias ShippingQueryContext
import { type ShippingQueryContext } from "https://dotland.deno.dev/x/grammy@v1.31.0/context.ts";

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

This helper type can be used to narrow down context objects the same way how annotate bot.shippingQuery does it. This allows you to context objects in middleware that is not directly passed to bot.shippingQuery, 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>, "shipping_query">