Class: Telegram::Bot::Types::ChatShared
- Defined in:
- sig/telegram/bot/types/chat_shared.rbs
Instance Attribute Summary collapse
-
#chat_id ⇒ Integer
readonly
Returns the value of attribute chat_id.
-
#photo ⇒ Array[PhotoSize]?
readonly
Returns the value of attribute photo.
-
#request_id ⇒ Integer
readonly
Returns the value of attribute request_id.
-
#title ⇒ String?
readonly
Returns the value of attribute title.
-
#username ⇒ String?
readonly
Returns the value of attribute username.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#chat_id ⇒ Integer (readonly)
Returns the value of attribute chat_id.
9 10 11 |
# File 'sig/telegram/bot/types/chat_shared.rbs', line 9 def chat_id @chat_id end |
#photo ⇒ Array[PhotoSize]? (readonly)
Returns the value of attribute photo.
12 13 14 |
# File 'sig/telegram/bot/types/chat_shared.rbs', line 12 def photo @photo end |
#request_id ⇒ Integer (readonly)
Returns the value of attribute request_id.
8 9 10 |
# File 'sig/telegram/bot/types/chat_shared.rbs', line 8 def request_id @request_id end |
#title ⇒ String? (readonly)
Returns the value of attribute title.
10 11 12 |
# File 'sig/telegram/bot/types/chat_shared.rbs', line 10 def title @title end |
#username ⇒ String? (readonly)
Returns the value of attribute username.
11 12 13 |
# File 'sig/telegram/bot/types/chat_shared.rbs', line 11 def username @username end |
Class Method Details
.new(request_id:, chat_id:, title:, username:, photo:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chat_shared.rbs', line 6
def self.new: (request_id: Integer, chat_id: Integer, ?title: String, ?username: String, ?photo: Array[PhotoSize]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|