From f6595383c44b7c7f46fa72b0bdfbdb09b1ca2d3f Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Thu, 2 Mar 2023 20:43:19 +0300 Subject: [PATCH] Add tests for `#[command(hide)]` --- crates/teloxide/tests/command.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/teloxide/tests/command.rs b/crates/teloxide/tests/command.rs index cc4cd8a1..cbd68abb 100644 --- a/crates/teloxide/tests/command.rs +++ b/crates/teloxide/tests/command.rs @@ -204,8 +204,10 @@ fn descriptions_off() { #[derive(BotCommands, Debug, PartialEq)] #[command(rename_rule = "lowercase")] enum DefaultCommands { - #[command(description = "off")] + #[command(hide)] Start, + #[command(hide)] + Username, Help, }