class Telegram::API::InlineQueryResultGame
- Telegram::API::InlineQueryResultGame
- Telegram::API::Type
- 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.
Defined in:
telegram/api/generated/types.crConstructors
- .new(type : String, id : String, game_short_name : String, reply_markup : InlineKeyboardMarkup | Nil = nil)
-
.new(pull : JSON::PullParser)
Represents a Game.
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 : InlineKeyboardMarkup | Nil
Optional.
-
#reply_markup=(reply_markup : InlineKeyboardMarkup | Nil)
Optional.
-
#type : String
Type of the result, must be game
-
#type=(type : String)
Type of the result, must be game
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(type : String, id : String, game_short_name : String, reply_markup : InlineKeyboardMarkup | Nil = nil)
#
def self.new(pull : JSON::PullParser)
#
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.
Instance Method Detail
def reply_markup=(reply_markup : InlineKeyboardMarkup | Nil)
#
Optional. Inline keyboard attached to the message