Class: Telegram::Bot::Types::Game

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/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

#animationAnimation? (readonly)

Returns the value of attribute animation.

Returns:



13
14
15
# File 'sig/telegram/bot/types/game.rbs', line 13

def animation
  @animation
end

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


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

def description
  @description
end

#photoArray[PhotoSize] (readonly)

Returns the value of attribute photo.

Returns:



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

def photo
  @photo
end

#textString? (readonly)

Returns the value of attribute text.

Returns:

  • (String, nil)


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

def text
  @text
end

#text_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute text_entities.

Returns:



12
13
14
# File 'sig/telegram/bot/types/game.rbs', line 12

def text_entities
  @text_entities
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


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

def title
  @title
end

Class Method Details

.new(title:, description:, photo:, text:, text_entities:, animation:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(title:, description:, photo:, text:, text_entities:, animation:) ⇒ instance

    Parameters:

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (title: String, description: String, photo: Array[PhotoSize], ?text: String, ?text_entities: Array[MessageEntity], ?animation: Animation) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance