mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add tests for #[command(hide)]
This commit is contained in:
parent
e003ece920
commit
ebdab88311
1 changed files with 3 additions and 1 deletions
|
@ -232,8 +232,10 @@ fn descriptions_off() {
|
||||||
#[derive(BotCommands, Debug, PartialEq)]
|
#[derive(BotCommands, Debug, PartialEq)]
|
||||||
#[command(rename_rule = "lowercase")]
|
#[command(rename_rule = "lowercase")]
|
||||||
enum DefaultCommands {
|
enum DefaultCommands {
|
||||||
#[command(description = "off")]
|
#[command(hide)]
|
||||||
Start,
|
Start,
|
||||||
|
#[command(hide)]
|
||||||
|
Username,
|
||||||
Help,
|
Help,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue