move single_button_markup macro to utils file
This commit is contained in:
parent
f58607a883
commit
0fc96b17a6
@ -62,14 +62,6 @@ impl LogMsg for <teloxide::Bot as teloxide::prelude::Requester>::SendMessage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! single_button_markup {
|
|
||||||
($button:expr) => {
|
|
||||||
InlineKeyboardMarkup {
|
|
||||||
inline_keyboard: vec![vec![$button]],
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
|
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
|
||||||
pub enum State {
|
pub enum State {
|
||||||
#[default]
|
#[default]
|
||||||
|
|||||||
@ -6,6 +6,14 @@ use crate::{
|
|||||||
BotResult,
|
BotResult,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
macro_rules! single_button_markup {
|
||||||
|
($button:expr) => {
|
||||||
|
InlineKeyboardMarkup {
|
||||||
|
inline_keyboard: vec![vec![$button]],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub async fn create_callback_button<C, D>(
|
pub async fn create_callback_button<C, D>(
|
||||||
literal: &str,
|
literal: &str,
|
||||||
ci: CallbackInfo<C>,
|
ci: CallbackInfo<C>,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user