Update #[command(description = "description")] docs

This commit is contained in:
TheAwiteb 2023-08-29 09:53:24 +03:00
parent 72f8f40f59
commit e0654f7c0d
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -169,6 +169,8 @@ pub use teloxide_macros::BotCommands;
/// ///
/// 3. `#[command(description = "description")]` and `/// description` /// 3. `#[command(description = "description")]` and `/// description`
/// Give your command a description. It will be shown in the help message. /// Give your command a description. It will be shown in the help message.
/// You can also write doc comment above the command, and it will be used as a
/// description as well.
/// ///
/// 4. `#[command(parse_with = "parser")]` /// 4. `#[command(parse_with = "parser")]`
/// Parse arguments of one command with a given parser. `parser` must be a /// Parse arguments of one command with a given parser. `parser` must be a