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

x/grammy_menu/mod.ts

Easily create interactive menus with grammY.
Go to Latest
import * as grammyMenu from "https://deno.land/x/grammy_menu@v1.1.2/mod.ts";

Classes

A menu is a set of interactive buttons that is displayed beneath a message. It uses an inline keyboard for that, so in a sense, a menu is just an inline keyboard spiced up with interactivity (such as navigation between multiple pages).

A menu range is a two-dimensional array of menu buttons.

Interfaces

Menu control panel. Can be used to update or close the menu, or to perform manual navigation between menus.

Context flavor for context objects in listeners that react to menus. Provides ctx.menu, a control pane for the respective menu.

Configuration options for the menu.

Type Aliases

Button of a menu. Almost the same type as InlineKeyboardButton but with texts that can be generated on the fly, and middleware for callback buttons.