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