Class: TD::Types::SharedUser

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/shared_user.rb

Overview

Contains information about a user shared with a bot.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#first_nameTD::Types::String

First name of the user; for bots only.

Returns:

  • (TD::Types::String)

    the current value of first_name



9
10
11
# File 'lib/tdlib/types/shared_user.rb', line 9

def first_name
  @first_name
end

#last_nameTD::Types::String

Last name of the user; for bots only.

Returns:

  • (TD::Types::String)

    the current value of last_name



9
10
11
# File 'lib/tdlib/types/shared_user.rb', line 9

def last_name
  @last_name
end

#photoTD::Types::Photo?

Profile photo of the user; for bots only; may be null.

Returns:



9
10
11
# File 'lib/tdlib/types/shared_user.rb', line 9

def photo
  @photo
end

#user_idInteger

User identifier.

Returns:

  • (Integer)

    the current value of user_id



9
10
11
# File 'lib/tdlib/types/shared_user.rb', line 9

def user_id
  @user_id
end

#usernameTD::Types::String

Username of the user; for bots only.

Returns:

  • (TD::Types::String)

    the current value of username



9
10
11
# File 'lib/tdlib/types/shared_user.rb', line 9

def username
  @username
end