Struct telegram_typings::Game
[−]
[src]
pub struct Game { pub title: String, pub description: String, pub photo: Vec<Box<PhotoSize>>, pub text: Option<String>, pub text_entities: Option<Vec<Box<MessageEntity>>>, pub animation: Option<Box<Animation>>, }
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
Fields
title: String
Title of the game
description: String
Description of the game
photo: Vec<Box<PhotoSize>>
Photo that will be displayed in the game message in chats.
text: Option<String>
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. See https://core.telegram.org/bots/api#setgamescore See https://core.telegram.org/bots/api#editmessagetext
text_entities: Option<Vec<Box<MessageEntity>>>
Special entities that appear in text, such as usernames, URLs, bot commands, etc.
animation: Option<Box<Animation>>
Animation that will be displayed in the game message in chats. Upload via BotFather See https://t.me/botfather
Trait Implementations
impl Debug for Game
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more