Add alias, aliases and hide_aliases to docs

This commit is contained in:
TheAwiteb 2023-09-25 21:09:59 +03:00
parent 019f9e9247
commit 67670e19d3
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -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")] {