From 68d52a9ba83c9d4ea3a95e5a2dd38058972224f2 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 14 Sep 2022 23:00:25 +0300 Subject: [PATCH] Fix update history pagination --- src/bots/approved_bot/modules/update_history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bots/approved_bot/modules/update_history.rs b/src/bots/approved_bot/modules/update_history.rs index aee036e..9a4452d 100644 --- a/src/bots/approved_bot/modules/update_history.rs +++ b/src/bots/approved_bot/modules/update_history.rs @@ -190,7 +190,7 @@ async fn update_log_pagination_handler( let message_text = format!("{header}{formated_items}{footer}"); - let keyboard = generic_get_pagination_keyboard(1, total_pages, update_callback_data, true); + let keyboard = generic_get_pagination_keyboard(page, total_pages, update_callback_data, true); match bot .edit_message_text(message.chat.id, message.id, message_text) .reply_markup(keyboard)