mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add alias
, aliases
and hide_aliases
to docs
This commit is contained in:
parent
019f9e9247
commit
67670e19d3
1 changed files with 9 additions and 0 deletions
|
@ -202,6 +202,15 @@ pub use teloxide_macros::BotCommands;
|
|||
/// 5. `#[command(hide)]`
|
||||
/// Hide a command from the help message. It will still be parsed.
|
||||
///
|
||||
/// 6. `#[command(alias = "alias")]`
|
||||
/// Add an alias to a command. It will be shown in the help message.
|
||||
///
|
||||
/// 7. `#[command(aliases = ["alias1", "alias2"])]`
|
||||
/// Add multiple aliases to a command. They will be shown in the help message.
|
||||
///
|
||||
/// 8. `#[command(hide_aliases)]`
|
||||
/// Hide all aliases of a command from the help message.
|
||||
///
|
||||
/// ## Example
|
||||
/// ```
|
||||
/// # #[cfg(feature = "macros")] {
|
||||
|
|
Loading…
Reference in a new issue