Class: TD::Types::User
Overview
Represents a user.
Instance Attribute Summary collapse
-
#first_name ⇒ TD::Types::String
First name of the user.
-
#have_access ⇒ Boolean
If false, the user is inaccessible, and the only information known about the user is inside this class.
-
#id ⇒ Integer
User identifier.
-
#is_contact ⇒ Boolean
The user is a contact of the current user.
-
#is_fake ⇒ Boolean
True, if many users reported this user as a fake account.
-
#is_mutual_contact ⇒ Boolean
The user is a contact of the current user and the current user is a contact of the user.
-
#is_scam ⇒ Boolean
True, if many users reported this user as a scam.
-
#is_support ⇒ Boolean
True, if the user is Telegram support account.
-
#is_verified ⇒ Boolean
True, if the user is verified.
-
#language_code ⇒ TD::Types::String
IETF language tag of the user’s language; only available to bots.
-
#last_name ⇒ TD::Types::String
Last name of the user.
-
#phone_number ⇒ TD::Types::String
Phone number of the user.
-
#profile_photo ⇒ TD::Types::ProfilePhoto?
Profile photo of the user; may be null.
-
#restriction_reason ⇒ TD::Types::String
If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
-
#status ⇒ TD::Types::UserStatus
Current online status of the user.
-
#type ⇒ TD::Types::UserType
Type of the user.
-
#username ⇒ TD::Types::String
Username of the user.
Method Summary
Methods inherited from Base
Instance Attribute Details
#first_name ⇒ TD::Types::String
First name of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def first_name @first_name end |
#have_access ⇒ Boolean
If false, the user is inaccessible, and the only information known about the user is inside this class. It can’t be passed to any method except GetUser.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def have_access @have_access end |
#id ⇒ Integer
User identifier.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def id @id end |
#is_contact ⇒ Boolean
The user is a contact of the current user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def is_contact @is_contact end |
#is_fake ⇒ Boolean
True, if many users reported this user as a fake account.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def is_fake @is_fake end |
#is_mutual_contact ⇒ Boolean
The user is a contact of the current user and the current user is a contact of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def is_mutual_contact @is_mutual_contact end |
#is_scam ⇒ Boolean
True, if many users reported this user as a scam.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def is_scam @is_scam end |
#is_support ⇒ Boolean
True, if the user is Telegram support account.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def is_support @is_support end |
#is_verified ⇒ Boolean
True, if the user is verified.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def is_verified @is_verified end |
#language_code ⇒ TD::Types::String
IETF language tag of the user’s language; only available to bots.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def language_code @language_code end |
#last_name ⇒ TD::Types::String
Last name of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def last_name @last_name end |
#phone_number ⇒ TD::Types::String
Phone number of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def phone_number @phone_number end |
#profile_photo ⇒ TD::Types::ProfilePhoto?
Profile photo of the user; may be null.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def profile_photo @profile_photo end |
#restriction_reason ⇒ TD::Types::String
If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def restriction_reason @restriction_reason end |
#status ⇒ TD::Types::UserStatus
Current online status of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def status @status end |
#type ⇒ TD::Types::UserType
Type of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def type @type end |
#username ⇒ TD::Types::String
Username of the user.
25 26 27 |
# File 'lib/tdlib/types/user.rb', line 25 def username @username end |