feat: less ambigous pagination
This commit is contained in:
@@ -170,7 +170,7 @@ def render_products(
|
||||
nav_buttons = []
|
||||
if prev_cb:
|
||||
nav_buttons.append(InlineKeyboardButton(text="◀️", callback_data=prev_cb))
|
||||
page_text = f"{page + 1}/{total_pages}" if total_pages is not None else f"{page + 1}"
|
||||
page_text = f"Стр. {page + 1}/{total_pages}" if total_pages is not None else f"Стр. {page + 1}"
|
||||
nav_buttons.append(InlineKeyboardButton(text=page_text, callback_data="..."))
|
||||
if next_cb:
|
||||
nav_buttons.append(InlineKeyboardButton(text="▶️", callback_data=next_cb))
|
||||
|
||||
Reference in New Issue
Block a user