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
use super::InlineKeyboardButton;
use serde::Serialize;

/// Supported reply markup payloads.
#[derive(Debug, Serialize)]
#[serde(untagged)]
pub enum ReplyMarkup {
    /// Inline keyboard made of button rows.
    InlineKeyboard {
        /// Rows of inline keyboard buttons.
        inline_keyboard: Vec<Vec<InlineKeyboardButton>>,
    },
}