Class: Telegrammer::DataTypes::User

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

Instance Attribute Details

#first_nameString

User‘s or bot’s first name

Returns:

  • (String)

    the current value of first_name



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

def first_name
  @first_name
end

#idInteger

Unique identifier for this user or bot

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#last_nameString

Optional. User‘s or bot’s last name

Returns:

  • (String)

    the current value of last_name



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

def last_name
  @last_name
end

#usernameString

Optional. User‘s or bot’s username

Returns:

  • (String)

    the current value of username



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

def username
  @username
end