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?,
|
.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))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user