menu
menu copied to clipboard
Interactive menus for grammY
After #3 it should be trivial to implement pagination (both in message and in reply markup) on top of menus. We should consider adding this to the menu plugin. We...
Allows to look up menu instances via the context object. They no longer have to be in scope. This way, the menus can be defined in one file, and then...
It's a common thing to create menu ranges where all buttons have the same payload object. It would be useful if one could do ```ts const range = new MenuRange({...
Closes #26
# Current Signature ```js url(text: MaybeDynamicString, url: string) ``` # Proposed Signature ```js url(text: MaybeDynamicString, url: MaybeDynamicString) ```
Menus cannot be sent via `bot.api` because they require an installed API transformer. This transformer is only installed during `bot.use(menu)`. One way would be to directly provide the API transformer...
I got a `400 Error BUTTON_DATA_INVALID` when using menu plugin. The error message is very confusing and it took me a while to debug. Turns out it's because I used...
When I have something like: ``` menu.dynamic((ctx, range) => { test.map.forEach((t) => { range .text(t.desc, (ctx) => ctx.reply(t.desc)) .row(); }); }); ctx.reply("Select...", { reply_markup: menu }); ``` executed everytime by...
After discussion in the telegram channel it appears that currently `ctx.menu.back()` always returns to the top-most menu. This makes it impossible to navigate menus up and down deeper than 2nd...