pass_manager/src/handlers/commands/help.rs

9 lines
284 B
Rust
Raw Normal View History

2023-05-03 18:08:14 +00:00
use crate::handlers::Command;
2023-04-27 13:25:23 +00:00
use teloxide::{adaptors::Throttle, prelude::*, utils::command::BotCommands};
pub async fn help(bot: Throttle<Bot>, msg: Message) -> crate::Result<()> {
2023-05-03 18:08:14 +00:00
bot.send_message(msg.chat.id, Command::descriptions().to_string())
2023-04-27 13:25:23 +00:00
.await?;
Ok(())
}