Skip to main content
Module

x/grammy_menu/mod.ts>Menu#prepare

Easily create interactive menus with grammY.
Go to Latest
method Menu.prototype.prepare
import { Menu } from "https://deno.land/x/grammy_menu@v1.1.2/mod.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