create public stacked_buttons_markup macro

This commit is contained in:
Akulij 2025-04-30 21:06:41 +03:00
parent 710c1bda8d
commit 88417441ac

View File

@ -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>,