Class: Telegram::Bot::Types::Chat
- Defined in:
- sig/telegram/bot/types/chat.rbs
Instance Attribute Summary collapse
-
#first_name ⇒ String?
readonly
Returns the value of attribute first_name.
-
#id ⇒ Integer
readonly
Returns the value of attribute id.
-
#is_direct_messages ⇒ true?
readonly
Returns the value of attribute is_direct_messages.
-
#is_forum ⇒ true?
readonly
Returns the value of attribute is_forum.
-
#last_name ⇒ String?
readonly
Returns the value of attribute last_name.
-
#title ⇒ String?
readonly
Returns the value of attribute title.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#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
#first_name ⇒ String? (readonly)
Returns the value of attribute first_name.
12 13 14 |
# File 'sig/telegram/bot/types/chat.rbs', line 12 def first_name @first_name end |
#id ⇒ Integer (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/chat.rbs', line 8 def id @id end |
#is_direct_messages ⇒ true? (readonly)
Returns the value of attribute is_direct_messages.
15 16 17 |
# File 'sig/telegram/bot/types/chat.rbs', line 15 def @is_direct_messages end |
#is_forum ⇒ true? (readonly)
Returns the value of attribute is_forum.
14 15 16 |
# File 'sig/telegram/bot/types/chat.rbs', line 14 def is_forum @is_forum end |
#last_name ⇒ String? (readonly)
Returns the value of attribute last_name.
13 14 15 |
# File 'sig/telegram/bot/types/chat.rbs', line 13 def last_name @last_name end |
#title ⇒ String? (readonly)
Returns the value of attribute title.
10 11 12 |
# File 'sig/telegram/bot/types/chat.rbs', line 10 def title @title end |
#type ⇒ String (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'sig/telegram/bot/types/chat.rbs', line 9 def type @type end |
#username ⇒ String? (readonly)
Returns the value of attribute username.
11 12 13 |
# File 'sig/telegram/bot/types/chat.rbs', line 11 def username @username end |
Class Method Details
.new(id:, type:, title:, username:, first_name:, last_name:, is_forum:, is_direct_messages:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chat.rbs', line 6
def self.new: (id: Integer, type: String, ?title: String, ?username: String, ?first_name: String, ?last_name: String, ?is_forum: true, ?is_direct_messages: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|