mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-23 07:09:34 +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)]`
|
/// 5. `#[command(hide)]`
|
||||||
/// Hide a command from the help message. It will still be parsed.
|
/// 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
|
/// ## Example
|
||||||
/// ```
|
/// ```
|
||||||
/// # #[cfg(feature = "macros")] {
|
/// # #[cfg(feature = "macros")] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue