use create_callback_button to create more info button

reason: localization and follow pattern
This commit is contained in:
Akulij 2025-04-30 21:20:18 +03:00
parent c56b3bf4eb
commit c6468269e7

View File

@ -613,13 +613,9 @@ async fn make_start_buttons(db: &mut DB) -> BotResult<InlineKeyboardMarkup> {
)
.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))
}