pass_manager/src/handlers/help.rs

8 lines
261 B
Rust
Raw Normal View History

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<()> {
bot.send_message(msg.chat.id, super::Command::descriptions().to_string())
.await?;
Ok(())
}