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
15
16
17
18
use super::{Message, User};
use serde::Deserialize;

/// Callback query sent when a user presses an inline keyboard button.
#[derive(Debug, Deserialize)]
pub struct CallbackQuery {
    /// Unique identifier for this query.
    pub id: String,

    /// User who pressed the button.
    pub from: User,

    /// Message that contained the pressed button, if Telegram included it.
    pub message: Option<Message>,

    /// Callback data attached to the pressed button.
    pub data: Option<String>,
}