mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
parent
a5419f3475
commit
98150c401a
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ use teloxide::{prelude::*, types::ChatPermissions, utils::command::BotCommands};
|
||||||
|
|
||||||
// Derive BotCommands to parse text with a command into this enumeration.
|
// Derive BotCommands to parse text with a command into this enumeration.
|
||||||
//
|
//
|
||||||
// 1. `rename_rule = "lowercase"` turns all the commands into lowercase
|
// 1. `rename_rule = "lowercase"` turns all the commands into lowercase letters.
|
||||||
// letters. 2. `description = "..."` specifies a text before all the commands.
|
// 2. `description = "..."` specifies a text before all the commands.
|
||||||
//
|
//
|
||||||
// That is, you can just call Command::descriptions() to get a description of
|
// That is, you can just call Command::descriptions() to get a description of
|
||||||
// your commands in this format:
|
// your commands in this format:
|
||||||
|
|
Loading…
Reference in a new issue