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

x/grammy_menu/mod.ts>MenuRange#back

Interactive menus for grammY.
Go to Latest
method MenuRange.prototype.back
import { MenuRange } from "https://deno.land/x/grammy_menu@v1.2.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>[]