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