Skip to content

class Tourmaline::InlineQueryResultGame
inherits Reference #

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

Constructors#

.new(id, game_short_name, type = "game", reply_markup : Tourmaline::InlineKeyboardMarkup? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#game_short_name : String #

Short name of the game

View source

#game_short_name=(game_short_name : String) #

Short name of the game

View source

#id : String #

Unique identifier for this result, 1-64 bytes

View source

#id=(id : String) #

Unique identifier for this result, 1-64 bytes

View source

#reply_markup : Tourmaline::InlineKeyboardMarkup? #

Optional. Inline keyboard attached to the message

View source

#reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup?) #

Optional. Inline keyboard attached to the message

View source

#type : String #

Type of the result, must be game

View source

#type=(type : String) #

Type of the result, must be game

View source