frakti 0.1.0

Telegram bot API client for Rust, with a focus on single-threaded async runtime support
Documentation
//! API Objects to be used with [HTML5 games](https://core.telegram.org/bots/api#games).

use super::{
    macros::{apistruct, apply},
    types::{Animation, MessageEntity, PhotoSize, User},
};

#[apply(apistruct!)]
#[derive(Copy, Eq)]
pub struct CallbackGame {}

#[apply(apistruct!)]
#[derive(Eq)]
pub struct Game {
    pub title: String,
    pub description: String,
    pub photo: Vec<PhotoSize>,
    pub text: Option<String>,
    pub text_entities: Option<Vec<MessageEntity>>,
    pub animation: Option<Animation>,
}

#[apply(apistruct!)]
#[derive(Eq)]
pub struct GameHighScore {
    pub position: u32,
    pub user: User,
    pub score: i32,
}