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?, .await?,
]); ]);
buttons.push(vec![InlineKeyboardButton::callback( buttons.push(vec![
"More info", create_callback_button("more_info", CallbackStore::new(Callback::MoreInfo), db).await?,
CallbackStore::new(Callback::MoreInfo) ]);
.store(db)
.await?
.get_id(),
)]);
Ok(InlineKeyboardMarkup::new(buttons)) Ok(InlineKeyboardMarkup::new(buttons))
} }