Class: Telegrammer::DataTypes::Contact
- Defined in:
- lib/telegrammer/data_types/contact.rb
Overview
Telegram Contact data type
See more at core.telegram.org/bots/api#contact
Instance Attribute Summary collapse
-
#first_name ⇒ String
Contact’s first name.
-
#last_name ⇒ String
Optional.
-
#phone_number ⇒ String
Contact’s phone number.
-
#user_id ⇒ Integer
Optional.
Instance Attribute Details
#first_name ⇒ String
Contact’s first name
11 12 13 |
# File 'lib/telegrammer/data_types/contact.rb', line 11 def first_name @first_name end |
#last_name ⇒ String
Optional. Contact’s last name
11 12 13 |
# File 'lib/telegrammer/data_types/contact.rb', line 11 def last_name @last_name end |
#phone_number ⇒ String
Contact’s phone number
11 12 13 |
# File 'lib/telegrammer/data_types/contact.rb', line 11 def phone_number @phone_number end |
#user_id ⇒ Integer
Optional. Contact’s user identifier in Telegram
11 12 13 |
# File 'lib/telegrammer/data_types/contact.rb', line 11 def user_id @user_id end |