class Tourmaline::Game
- Tourmaline::Game
 - Reference
 - Object
 
Overview
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
Included Modules
- JSON::Serializable
 
Defined in:
tourmaline/types/api.crConstructors
- .new(title : String, description : String, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, text : String | Nil = nil, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, animation : Tourmaline::Animation | Nil = nil)
 - .new(pull : JSON::PullParser)
 
Instance Method Summary
- 
        #animation : Tourmaline::Animation | Nil
        
          
Optional.
 - 
        #animation=(animation : Tourmaline::Animation | Nil)
        
          
Optional.
 - 
        #description : String
        
          
Description of the game
 - 
        #description=(description : String)
        
          
Description of the game
 - 
        #photo : Array(Tourmaline::PhotoSize)
        
          
Photo that will be displayed in the game message in chats.
 - 
        #photo=(photo : Array(Tourmaline::PhotoSize))
        
          
Photo that will be displayed in the game message in chats.
 - 
        #text : String | Nil
        
          
Optional.
 - 
        #text=(text : String | Nil)
        
          
Optional.
 - 
        #text_entities : Array(Tourmaline::MessageEntity)
        
          
Optional.
 - 
        #text_entities=(text_entities : Array(Tourmaline::MessageEntity))
        
          
Optional.
 - 
        #title : String
        
          
Title of the game
 - 
        #title=(title : String)
        
          
Title of the game
 
Constructor Detail
Instance Method Detail
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather
Photo that will be displayed in the game message in chats.
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. 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. Special entities that appear in text, such as usernames, URLs, bot commands, etc.