diff --git a/crates/teloxide/examples/command.rs b/crates/teloxide/examples/command.rs index c1dc2d94..1a460b8a 100644 --- a/crates/teloxide/examples/command.rs +++ b/crates/teloxide/examples/command.rs @@ -15,11 +15,13 @@ async fn main() { #[command(rename_rule = "lowercase")] enum Command { /// Display this text. + #[command(aliases = ["h", "?"])] Help, /// Handle a username. + #[command(alias = "u")] Username(String), /// Handle a username and an age. - #[command(parse_with = "split")] + #[command(parse_with = "split", alias = "ua", hide_aliases)] UsernameAndAge { username: String, age: u8 }, }