ferrisgram 0.2.1

An elegent rust client for the Telegram Bot API.
Documentation
//! FerrisGram is an asynchronous autogenerated wrapper for the Telegram Bot API written in Rust. This library provides all the methods and types that are available on the official Telegram Bot API.
pub mod bot;
pub mod error;
pub mod ext;
pub mod helpers_ext;
pub mod input_file;
pub mod methods;
pub mod types;
pub use bot::*;
mod helpers;
mod macros;

pub static DEFAULT_API_URL: &str = "https://api.telegram.org";

/// Use this method to convert slice of slice of InlineKeyboardButton to Vector form.
#[allow(suspicious_double_ref_op)]
pub fn build_keyboard(
    kb: &[&[types::InlineKeyboardButton]],
) -> Vec<Vec<types::InlineKeyboardButton>> {
    let mut trv: Vec<Vec<types::InlineKeyboardButton>> = Vec::new();
    for clmn in kb {
        trv.push(Vec::from(clmn.to_owned()))
    }
    trv
}