telegram_bots_api 0.710.0

Telegram bots api simple rust wrapper, and no more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::Serialize;

/// <https://core.telegram.org/bots/api#getupdates>
/// Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.
#[derive(Debug, Serialize, Default)]
pub struct GetUpdate {
    pub offset: i64,
    pub limit: i64,
    pub timeout: u64,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub allowed_updates: Option<Vec<String>>,
}