Struct wdg_telegram_types::Game [] [src]

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>,
}

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

Fields

Title of the game

Description of the game

Photo that will be displayed in the game message in chats.

Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.

Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.

Optional. Animation that will be displayed in the game message in chats. Upload via BotFather