tbot 0.6.0

Make cool Telegram bots with Rust easily.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::Deserialize;

/// Represents a [`BotCommand`][docs].
///
/// [docs]: https://core.telegram.org/bots/api#botcommand
#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
#[non_exhaustive]
pub struct BotCommand {
    /// The command's text.
    pub command: String,
    /// The command's decription.
    pub description: String,
}