Class: TD::Types::User
Overview
Represents a user.
Instance Attribute Summary collapse
-
#first_name ⇒ 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.
-
#incoming_link ⇒ TD::Types::LinkState
Relationship from the other user to the current 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 ⇒ String
IETF language tag of the user's language; only available to bots.
-
#last_name ⇒ String
Last name of the user.
-
#outgoing_link ⇒ TD::Types::LinkState
Relationship from the current user to the other user.
-
#phone_number ⇒ String
Phone number of the user.
-
#profile_photo ⇒ TD::Types::ProfilePhoto?
Profile photo of the user; may be null.
-
#restriction_reason ⇒ String
If non-empty, it contains 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 ⇒ String
Username of the user.
Method Summary
Methods inherited from Base
Instance Attribute Details
#first_name ⇒ String
First name of the user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 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.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def have_access @have_access end |
#id ⇒ Integer
User identifier.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def id @id end |
#incoming_link ⇒ TD::Types::LinkState
Relationship from the other user to the current user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def incoming_link @incoming_link end |
#is_scam ⇒ Boolean
True, if many users reported this user as a scam.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def is_scam @is_scam end |
#is_support ⇒ Boolean
True, if the user is Telegram support account.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def is_support @is_support end |
#is_verified ⇒ Boolean
True, if the user is verified.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def is_verified @is_verified end |
#language_code ⇒ String
IETF language tag of the user's language; only available to bots.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def language_code @language_code end |
#last_name ⇒ String
Last name of the user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def last_name @last_name end |
#outgoing_link ⇒ TD::Types::LinkState
Relationship from the current user to the other user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def outgoing_link @outgoing_link end |
#phone_number ⇒ String
Phone number of the user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def phone_number @phone_number end |
#profile_photo ⇒ TD::Types::ProfilePhoto?
Profile photo of the user; may be null.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def profile_photo @profile_photo end |
#restriction_reason ⇒ String
If non-empty, it contains the reason why access to this user must be restricted. The format of the string is "#type: description". #type contains the type of the restriction and at least one of the suffixes "-all", "-ios", "-android", or "-wp", which describe the platforms on which access should be restricted. (For example, "terms-ios-android". description contains a human-readable description of the restriction, which can be shown to the user).
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def restriction_reason @restriction_reason end |
#status ⇒ TD::Types::UserStatus
Current online status of the user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def status @status end |
#type ⇒ TD::Types::UserType
Type of the user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def type @type end |
#username ⇒ String
Username of the user.
27 28 29 |
# File 'lib/tdlib/types/user.rb', line 27 def username @username end |