conogram/entities/bot_command.rs
1use serde::{Deserialize, Serialize};
2
3/// This object represents a bot command.
4///
5/// API Reference: [link](https://core.telegram.org/bots/api/#botcommand)
6#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
7pub struct BotCommand {
8 /// Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
9 pub command: String,
10
11 /// Description of the command; 1-256 characters.
12 pub description: String,
13}
14
15// Divider: all content below this line will be preserved after code regen