Class: Telegrammer::DataTypes::User
- Defined in:
- lib/telegrammer/data_types/user.rb
Overview
Telegram User data type.
See more at core.telegram.org/bots/api#user
Instance Attribute Summary collapse
-
#first_name ⇒ String
User‘s or bot’s first name.
-
#id ⇒ Integer
Unique identifier for this user or bot.
-
#last_name ⇒ String
Optional.
-
#username ⇒ String
Optional.
Instance Attribute Details
#first_name ⇒ String
User‘s or bot’s first name
11 12 13 |
# File 'lib/telegrammer/data_types/user.rb', line 11 def first_name @first_name end |
#id ⇒ Integer
Unique identifier for this user or bot
11 12 13 |
# File 'lib/telegrammer/data_types/user.rb', line 11 def id @id end |
#last_name ⇒ String
Optional. User‘s or bot’s last name
11 12 13 |
# File 'lib/telegrammer/data_types/user.rb', line 11 def last_name @last_name end |
#username ⇒ String
Optional. User‘s or bot’s username
11 12 13 |
# File 'lib/telegrammer/data_types/user.rb', line 11 def username @username end |