class Tourmaline::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.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, game_short_name : String, type : String = "game", reply_markup : Tourmaline::InlineKeyboardMarkup | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[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 : Tourmaline::InlineKeyboardMarkup | Nil #

Optional. Inline keyboard attached to the message


[View source]
def reply_markup=(reply_markup : Tourmaline::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]