handlers.pagination module
- handlers.pagination.build_pagination_row(page, total_items, page_size, callback_prefix)[מקור]
Return a row of pagination buttons [prev,next] or None if not needed. :rtype:
Optional
[List
[InlineKeyboardButton
]]page: current 1-based page index
total_items: total number of items
page_size: items per page
callback_prefix: for example
files\_page\_
→ formats as{prefix}{page_num}