tgbot 0.47.0

A Telegram Bot library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(missing_docs)]

use tgbot::types::*;

mod cx;

use cx::Cx;

#[tokio::test]
async fn execute() {
    let mut cx = Cx::new().await;
    cx.execute_batch([(
        "save-prepared-keyboard-button",
        SavePreparedKeyboardButton::new(1, KeyboardButton::new("test")),
        |x| assert_eq!(x.id, "button-id"),
    )])
    .await;
}