rust-tg-bot-raw 1.0.0-rc.1

Pure Telegram Bot API types and methods for Rust -- a faithful port of python-telegram-bot's core layer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

/// An animated emoji with a random value, as returned by the Telegram Bot API.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct Dice {
    /// Value of the dice.
    pub value: i64,

    /// Emoji on which the dice throw animation is based.
    pub emoji: String,
}