use std::error::Error; use teloxide::prelude::{AutoSend, Bot, Message, UpdateWithCx}; use teloxide::utils::command::BotCommand; #[derive(BotCommand)] #[command(rename = "lowercase", description = "These commands are supported:")] pub enum Command { #[command(description = "Display this text")] Help, } pub async fn handler( cx: UpdateWithCx, Message>, command: Command, ) -> Result<(), Box> { match command { Command::Help => cx.answer(Command::descriptions()).await?, }; Ok(()) }