From dd24f750f20d9192f55b5cd5d752c0b8b0ac4521 Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Thu, 2 Mar 2023 20:49:49 +0300 Subject: [PATCH] Add documentation for `#[command(hide)]` --- crates/teloxide/src/utils/command.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/teloxide/src/utils/command.rs b/crates/teloxide/src/utils/command.rs index 763f1f7a..be27c560 100644 --- a/crates/teloxide/src/utils/command.rs +++ b/crates/teloxide/src/utils/command.rs @@ -168,14 +168,16 @@ pub use teloxide_macros::BotCommands; /// `rename_rule`). /// /// 3. `#[command(description = "description")]` -/// Give your command a description. Write `"off"` for `"description"` to hide a -/// command. +/// Give your command a description. It will be shown in the help message. /// /// 4. `#[command(parse_with = "parser")]` /// Parse arguments of one command with a given parser. `parser` must be a /// function of the signature `fn(String) -> Result`, where /// `Tuple` corresponds to the variant's arguments. /// +/// 5. `#[command(hide)]` +/// Hide a command from the help message. It will still be parsed. +/// /// ## Example /// ``` /// # #[cfg(feature = "macros")] {