tbot 0.5.3

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

/// Represents a [`Dice`].
///
/// [`Dice`]: https://core.telegram.org/bots/api#dice
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Deserialize)]
pub struct Dice {
    /// The value of the dice in the range [1, 6].
    pub value: u8,
}