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

x/grammy/mod.ts>ReactionContext

The Telegram Bot Framework.
Very Popular
Latest
type alias ReactionContext
import { type ReactionContext } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

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

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