Allow set a function for `joinLastRow` parameter
In some complicated cases I need to display a button on the same or on the next row depending on context. Now the joinLastRow parameter has boolean type and it's impossible to set value dynamically.
It would be nice if this parameter has ContextPathFunc<Context, boolean> type (the same as hide parameter).
Interesting idea. Not sure if that's easy or messy to add. I will look into it when I find the time.
The joinLastRow parameter is used on startup to create the keyboard structure. It is not used afterwards. Which means… refactoring that will be messy / not as simple.
https://github.com/EdJoPaTo/telegraf-inline-menu/blob/ff9823cac16dd646e412669ba3aa28a4d3203bf1/source/keyboard.ts#L37-L46
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.