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
13
14
15
16
17
18
use crate::config::Config;

#[test]
fn new_with_default() {
    let config = Config::default();

    assert!(!config.debug);
    assert!(!config.production);

    assert_eq!(config.token, String::from(""));
    assert_eq!(config.url, String::from(""));
    assert_eq!(config.webhook, String::from(""));
    assert_eq!(config.timeout, 5u64);
    assert_eq!(config.connect_timeout, 5u64);
    assert_eq!(config.updates_offset, 0i64);
    assert_eq!(config.updates_limit, 100i64);
    assert_eq!(config.updates_timeout, 0u64);
}