From c6468269e761c3029d69903ec02fea666773e0bf Mon Sep 17 00:00:00 2001 From: Akulij Date: Wed, 30 Apr 2025 21:20:18 +0300 Subject: [PATCH] use create_callback_button to create more info button reason: localization and follow pattern --- src/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 29e72bb..fe54ee5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -613,13 +613,9 @@ async fn make_start_buttons(db: &mut DB) -> BotResult { ) .await?, ]); - buttons.push(vec![InlineKeyboardButton::callback( - "More info", - CallbackStore::new(Callback::MoreInfo) - .store(db) - .await? - .get_id(), - )]); + buttons.push(vec![ + create_callback_button("more_info", CallbackStore::new(Callback::MoreInfo), db).await?, + ]); Ok(InlineKeyboardMarkup::new(buttons)) }