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

x/grammy_i18n/mod.ts>hears

Internationalization for grammY powered by Fluent.
Latest
function hears
import { hears } from "https://deno.land/x/grammy_i18n@v1.1.0/mod.ts";

A filter middleware for listening to the messages send by the in their language. It is useful when you have to listen for custom keyboard texts.

bot.filter(hears("menu-btn"), (ctx) => ...)

Parameters

key: string

Key of the message to listen for.