Class: Telegram::Bot::Types::Game
- Defined in:
- sig/telegram/bot/types/game.rbs
Instance Attribute Summary collapse
-
#animation ⇒ Animation?
readonly
Returns the value of attribute animation.
-
#description ⇒ String
readonly
Returns the value of attribute description.
-
#photo ⇒ Array[PhotoSize]
readonly
Returns the value of attribute photo.
-
#text ⇒ String?
readonly
Returns the value of attribute text.
-
#text_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute text_entities.
-
#title ⇒ String
readonly
Returns the value of attribute title.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#animation ⇒ Animation? (readonly)
Returns the value of attribute animation.
13 14 15 |
# File 'sig/telegram/bot/types/game.rbs', line 13 def animation @animation end |
#description ⇒ String (readonly)
Returns the value of attribute description.
9 10 11 |
# File 'sig/telegram/bot/types/game.rbs', line 9 def description @description end |
#photo ⇒ Array[PhotoSize] (readonly)
Returns the value of attribute photo.
10 11 12 |
# File 'sig/telegram/bot/types/game.rbs', line 10 def photo @photo end |
#text ⇒ String? (readonly)
Returns the value of attribute text.
11 12 13 |
# File 'sig/telegram/bot/types/game.rbs', line 11 def text @text end |
#text_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute text_entities.
12 13 14 |
# File 'sig/telegram/bot/types/game.rbs', line 12 def text_entities @text_entities end |
#title ⇒ String (readonly)
Returns the value of attribute title.
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
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
|