From ebdab8831191d1d4ce973c06ce6949bc30b714b2 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 245b4c33..c80e71bc 100644 --- a/crates/teloxide/tests/command.rs +++ b/crates/teloxide/tests/command.rs @@ -232,8 +232,10 @@ fn descriptions_off() { #[derive(BotCommands, Debug, PartialEq)] #[command(rename_rule = "lowercase")] enum DefaultCommands { - #[command(description = "off")] + #[command(hide)] Start, + #[command(hide)] + Username, Help, }