turingram 0.0.2

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 serde::Deserialize;

/// Telegram user or bot account.
#[derive(Debug, Deserialize)]
pub struct User {
    /// Unique Telegram user identifier.
    pub id: i64,

    /// Whether this account is a bot.
    pub is_bot: bool,

    /// User's first name.
    pub first_name: String,
}