class
Hamilton::Types::Game
- Hamilton::Types::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
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/game.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#animation : Hamilton::Types::Animation | Nil
Animation that will be displayed in the game message in chats.
-
#animation=(animation : Hamilton::Types::Animation | Nil)
Animation that will be displayed in the game message in chats.
-
#description : String
Description of the game.
-
#description=(description : String)
Description of the game.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#photo : Array(PhotoSize)
Photo that will be displayed in the game message in chats.
-
#photo=(photo : Array(PhotoSize))
Photo that will be displayed in the game message in chats.
-
#text : String | Nil
Brief description of the game or high scores included in the game message.
-
#text=(text : String | Nil)
Brief description of the game or high scores included in the game message.
-
#text_entities : Array(Hamilton::Types::MessageEntity) | Nil
Special entities that appear in text, such as usernames, URLs, bot commands, etc.
-
#text_entities=(text_entities : Array(Hamilton::Types::MessageEntity) | Nil)
Special entities that appear in text, such as usernames, URLs, bot commands, etc.
-
#title : String
Title of the game.
-
#title=(title : String)
Title of the game.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Animation that will be displayed in the game message in chats. Upload via BotFather.
Animation that will be displayed in the game message in chats. Upload via BotFather.
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.
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.
Special entities that appear in text, such as usernames, URLs, bot commands, etc.
Special entities that appear in text, such as usernames, URLs, bot commands, etc.