Skip to main content
Module

x/grammy_menu/mod.ts>MenuRange#back

Easily create interactive menus with grammY.
Go to Latest
method MenuRange.prototype.back
import { MenuRange } from "https://deno.land/x/grammy_menu@v1.1.2/mod.ts";

Adds a text button that performs a navigation to the parent menu via ctx.menu.back().

Parameters

text: MaybeDynamicString<C>

The text to display, or a text with payload

...middleware: MenuMiddleware<C>[]

The listeners to call when the button is pressed

Parameters

text: TextAndPayload<C>
...middleware: MenuMiddleware<C & { match: string; }>[]

Parameters

text: MaybePayloadString<C>
...middleware: MenuMiddleware<C>[]