Added export handler macro

This commit is contained in:
2023-07-29 16:07:53 +03:00
parent 42088e69fe
commit b415277769
4 changed files with 36 additions and 50 deletions

View File

@ -1,32 +1,20 @@
//! This module consists of endpoints to handle commands
mod add_account;
mod cancel;
mod delete;
mod delete_all;
mod export;
mod gen_password;
mod get_account;
mod get_accounts;
mod help;
mod import;
mod menu;
mod set_master_pass;
mod start;
pub use add_account::add_account;
pub use cancel::cancel;
pub use delete::delete;
pub use delete_all::delete_all;
pub use export::export;
pub use gen_password::gen_password;
pub use get_account::get_account;
pub use get_accounts::get_accounts;
pub use help::help;
pub use import::import;
pub use menu::menu;
pub use set_master_pass::set_master_pass;
pub use start::start;
crate::export_handlers!(
add_account,
cancel,
delete,
delete_all,
export,
gen_password,
get_account,
get_accounts,
help,
import,
menu,
set_master_pass,
start
);
use teloxide::macros::BotCommands;