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

x/grammy_menu/menu.ts>Menu#prepare

Interactive menus for grammY.
Go to Latest
method Menu.prototype.prepare
import { Menu } from "https://deno.land/x/grammy_menu@v1.2.2/menu.ts";

Replaces known menu instances in the payload by their rendered versions. A menu is known if it is contained in this menu's index. Only the reply_markup property of the given object is checked for containing a menu.

Parameters

payload: Record<string, unknown>

Payload of API call

ctx: C

Context object