Class: Telegram::Bot::Types::Story
- Defined in:
- sig/telegram/bot/types/story.rbs
Instance Attribute Summary collapse
-
#chat ⇒ Chat
readonly
Returns the value of attribute chat.
-
#id ⇒ Integer
readonly
Returns the value of attribute id.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#chat ⇒ Chat (readonly)
Returns the value of attribute chat.
8 9 10 |
# File 'sig/telegram/bot/types/story.rbs', line 8 def chat @chat end |
#id ⇒ Integer (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'sig/telegram/bot/types/story.rbs', line 9 def id @id end |
Class Method Details
.new(chat:, id:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/story.rbs', line 6
def self.new: (chat: Chat, id: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|