use create_callback_button to create more info button
reason: localization and follow pattern
This commit is contained in:
parent
c56b3bf4eb
commit
c6468269e7
10
src/main.rs
10
src/main.rs
@ -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))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user