create public stacked_buttons_markup macro
This commit is contained in:
parent
710c1bda8d
commit
88417441ac
13
src/utils.rs
13
src/utils.rs
@ -15,6 +15,19 @@ macro_rules! single_button_markup {
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! stacked_buttons_markup {
|
||||
($( $button:expr ),+) => {
|
||||
InlineKeyboardMarkup {
|
||||
inline_keyboard: vec![
|
||||
$(
|
||||
vec![$button]
|
||||
)*
|
||||
],
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub async fn create_callback_button<C, D>(
|
||||
literal: &str,
|
||||
ci: CallbackInfo<C>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user