menu icon indicating copy to clipboard operation
menu copied to clipboard

feat: Pagination and other components

Open KnorpelSenf opened this issue 4 years ago • 2 comments

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.

KnorpelSenf avatar Oct 10 '21 20:10 KnorpelSenf

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:

pagination

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.

felinto-dev avatar Nov 07 '21 03:11 felinto-dev

https://github.com/Camelik/menu-pagination

KnorpelSenf avatar Nov 08 '23 16:11 KnorpelSenf