turingram 0.1.0

Small runtime-agnostic Telegram Bot API framework for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::UpdateKind;
use serde::Deserialize;

/// Telegram update delivered through webhooks or polling.
#[derive(Debug, Deserialize)]
pub struct Update {
    /// Unique update identifier.
    #[serde(rename = "update_id")]
    pub id: u32,

    /// Typed or raw update payload.
    #[serde(flatten)]
    pub kind: UpdateKind,
}