Class: Telegrammer::DataTypes::Contact

Inherits:
Base
  • Object
show all
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

Instance Attribute Details

#first_nameString

Contact’s first name

Returns:

  • (String)

    the current value of first_name



11
12
13
# File 'lib/telegrammer/data_types/contact.rb', line 11

def first_name
  @first_name
end

#last_nameString

Optional. Contact’s last name

Returns:

  • (String)

    the current value of last_name



11
12
13
# File 'lib/telegrammer/data_types/contact.rb', line 11

def last_name
  @last_name
end

#phone_numberString

Contact’s phone number

Returns:

  • (String)

    the current value of phone_number



11
12
13
# File 'lib/telegrammer/data_types/contact.rb', line 11

def phone_number
  @phone_number
end

#user_idInteger

Optional. Contact’s user identifier in Telegram

Returns:

  • (Integer)

    the current value of user_id



11
12
13
# File 'lib/telegrammer/data_types/contact.rb', line 11

def user_id
  @user_id
end