diff --git a/crates/teloxide-macros/src/command.rs b/crates/teloxide-macros/src/command.rs index 5a69c18d..d615a651 100644 --- a/crates/teloxide-macros/src/command.rs +++ b/crates/teloxide-macros/src/command.rs @@ -49,7 +49,6 @@ impl Command { let prefix = prefix.map(|(p, _)| p).unwrap_or_else(|| global_options.prefix.clone()); let description = description.map(|(d, _)| d); let parser = parser.map(|(p, _)| p).unwrap_or_else(|| global_options.parser_type.clone()); - Ok(Self { prefix, description, parser, name, hidden: hide.is_some() }) }