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

x/grammy_menu/deps.deno.ts>FilterQuery

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

Represents a filter query that can be passed to bot.on. There are three different kinds of filter queries: Level 1, Level 2, and Level 3. Check out the website to read about how filter queries work in grammY, and how to use them.

Here are three brief examples:

// Listen for messages of any type (Level 1)
bot.on('message', ctx => { ... })
// Listen for audio messages only (Level 2)
bot.on('message:audio', ctx => { ... })
// Listen for text messages that have a URL entity (Level 3)
bot.on('message:entities:url', ctx => { ... })
definition: ComputeFilterQueryList