class Telegram::API::InlineQueryResultGame

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.cr

Constructors

Instance Method Summary

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) #

[View source]
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.


[View source]

Instance Method Detail

def game_short_name : String #

Short name of the game


[View source]
def game_short_name=(game_short_name : String) #

Short name of the game


[View source]
def id : String #

Unique identifier for this result, 1-64 bytes


[View source]
def id=(id : String) #

Unique identifier for this result, 1-64 bytes


[View source]
def reply_markup : InlineKeyboardMarkup | Nil #

Optional. Inline keyboard attached to the message


[View source]
def reply_markup=(reply_markup : InlineKeyboardMarkup | Nil) #

Optional. Inline keyboard attached to the message


[View source]
def type : String #

Type of the result, must be game


[View source]
def type=(type : String) #

Type of the result, must be game


[View source]