class Tourmaline::InlineQueryResultGame
- Tourmaline::InlineQueryResultGame
- Reference
- Object
Overview
Represents a Game. Note: This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(id : String, game_short_name : String, type : String = "game", reply_markup : Tourmaline::InlineKeyboardMarkup | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#game_short_name : String
Short name of the game
-
#game_short_name=(game_short_name : String)
Short name of the game
-
#id : String
Unique identifier for this result, 1-64 bytes
-
#id=(id : String)
Unique identifier for this result, 1-64 bytes
-
#reply_markup : Tourmaline::InlineKeyboardMarkup | Nil
Optional.
-
#reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)
Optional.
-
#type : String
Type of the result, must be game
-
#type=(type : String)
Type of the result, must be game
Constructor Detail
def self.new(id : String, game_short_name : String, type : String = "game", reply_markup : Tourmaline::InlineKeyboardMarkup | Nil = nil)
#
Instance Method Detail
def reply_markup : Tourmaline::InlineKeyboardMarkup | Nil
#
Optional. Inline keyboard attached to the message
def reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)
#
Optional. Inline keyboard attached to the message