Open KnorpelSenf opened 3 years ago
Hey!
⚠️ This is NOT a Grammy plugin
I develop an abstraction for pagination in Telegram, you can check here: https://github.com/felinto-dev/tg-menu/blob/develop/lib/services/pagination.service.ts
See in action:
PS: I'm still developing this library and it lacks many things, like documentation and unit tests. I will do it in the next weeks in my free time. I believe this code can help in some way so that you don't have to start from scratch.
PS 2: Actually, the pagination-logic npm library does the most of hard work :P
I'm interested in working on a parallel library that provides the paging buttons for my library and @grammyjs/menu. I believe this can help the community.
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 could also look into more complex things like a date or a time picker, a calendar entry, radio buttons, check boxes, etc. This would rather go into the direction of
grammy-inline-menu
which is not a goal of this pluign.Instead, it may make sense to provide a second plugin that has a wealth of useful UI components, and that depends on the menu plugin.