turingram 0.1.0

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
use super::Method;
use crate::types::True;
use serde::Serialize;

/// Makes the bot leave a group, supergroup, or channel.
#[derive(Debug, Serialize)]
pub struct LeaveChat {
    /// Unique identifier of the chat the bot should leave.
    pub chat_id: i64,
}

impl Method for LeaveChat {
    type Response = True;

    const NAME: &str = "leaveChat";
}