Class: Telegram::Bot::Types::InlineQueryResultGame

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/inline_query_result_game.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#game_short_nameString (readonly)

Returns the value of attribute game_short_name.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/inline_query_result_game.rbs', line 10

def game_short_name
  @game_short_name
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/inline_query_result_game.rbs', line 9

def id
  @id
end

#reply_markupInlineKeyboardMarkup? (readonly)

Returns the value of attribute reply_markup.

Returns:



11
12
13
# File 'sig/telegram/bot/types/inline_query_result_game.rbs', line 11

def reply_markup
  @reply_markup
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/inline_query_result_game.rbs', line 8

def type
  @type
end

Class Method Details

.new(type:, id:, game_short_name:, reply_markup:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, id:, game_short_name:, reply_markup:) ⇒ instance

    Parameters:

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/inline_query_result_game.rbs', line 6

def self.new: (?type: String, id: String, game_short_name: String, ?reply_markup: InlineKeyboardMarkup) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance