Class: TD::Types::UserFullInfo
- Defined in:
- lib/tdlib/types/user_full_info.rb
Overview
Contains full information about a user.
Instance Attribute Summary collapse
-
#bio ⇒ TD::Types::FormattedText?
A short user bio; may be null for bots.
-
#birthdate ⇒ TD::Types::Birthdate?
Birthdate of the user; may be null if unknown.
-
#block_list ⇒ TD::Types::BlockList?
Block list to which the user is added; may be null if none.
-
#bot_info ⇒ TD::Types::BotInfo?
For bots, information about the bot; may be null if the user isn’t a bot.
-
#business_info ⇒ TD::Types::BusinessInfo?
Information about business settings for Telegram Business accounts; may be null if none.
-
#can_be_called ⇒ Boolean
True, if the user can be called.
-
#group_in_common_count ⇒ Integer
Number of group chats where both the other user and the current user are a member; 0 for the current user.
-
#has_posted_to_profile_stories ⇒ Boolean
True, if the user has posted to profile stories.
-
#has_private_calls ⇒ Boolean
True, if the user can’t be called due to their privacy settings.
-
#has_private_forwards ⇒ Boolean
True, if the user can’t be linked in forwarded messages due to their privacy settings.
-
#has_restricted_voice_and_video_note_messages ⇒ Boolean
True, if voice and video notes can’t be sent or forwarded to the user.
-
#has_sponsored_messages_enabled ⇒ Boolean
True, if the user always enabled sponsored messages; known only for the current user.
-
#need_phone_number_privacy_exception ⇒ Boolean
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.
-
#personal_chat_id ⇒ Integer
Identifier of the personal chat of the user; 0 if none.
-
#personal_photo ⇒ TD::Types::ChatPhoto?
User profile photo set by the current user for the contact; may be null.
-
#photo ⇒ TD::Types::ChatPhoto?
User profile photo; may be null.
-
#premium_gift_options ⇒ Array<TD::Types::PremiumPaymentOption>
The list of available options for gifting Telegram Premium to the user.
-
#public_photo ⇒ TD::Types::ChatPhoto?
User profile photo visible if the main photo is hidden by privacy settings; may be null.
-
#set_chat_background ⇒ Boolean
True, if the user set chat background for both chat users and it wasn’t reverted yet.
-
#supports_video_calls ⇒ Boolean
True, if a video call can be created with the user.
Method Summary
Methods inherited from Base
Instance Attribute Details
#bio ⇒ TD::Types::FormattedText?
A short user bio; may be null for bots.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def bio @bio end |
#birthdate ⇒ TD::Types::Birthdate?
Birthdate of the user; may be null if unknown.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def birthdate @birthdate end |
#block_list ⇒ TD::Types::BlockList?
Block list to which the user is added; may be null if none.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def block_list @block_list end |
#bot_info ⇒ TD::Types::BotInfo?
For bots, information about the bot; may be null if the user isn’t a bot.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def bot_info @bot_info end |
#business_info ⇒ TD::Types::BusinessInfo?
Information about business settings for Telegram Business accounts; may be null if none.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def business_info @business_info end |
#can_be_called ⇒ Boolean
True, if the user can be called.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def can_be_called @can_be_called end |
#group_in_common_count ⇒ Integer
Number of group chats where both the other user and the current user are a member; 0 for the current user.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def group_in_common_count @group_in_common_count end |
#has_posted_to_profile_stories ⇒ Boolean
True, if the user has posted to profile stories.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def has_posted_to_profile_stories @has_posted_to_profile_stories end |
#has_private_calls ⇒ Boolean
True, if the user can’t be called due to their privacy settings.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def has_private_calls @has_private_calls end |
#has_private_forwards ⇒ Boolean
True, if the user can’t be linked in forwarded messages due to their privacy settings.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def has_private_forwards @has_private_forwards end |
#has_restricted_voice_and_video_note_messages ⇒ Boolean
True, if voice and video notes can’t be sent or forwarded to the user.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def @has_restricted_voice_and_video_note_messages end |
#has_sponsored_messages_enabled ⇒ Boolean
True, if the user always enabled sponsored messages; known only for the current user.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def @has_sponsored_messages_enabled end |
#need_phone_number_privacy_exception ⇒ Boolean
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def need_phone_number_privacy_exception @need_phone_number_privacy_exception end |
#personal_chat_id ⇒ Integer
Identifier of the personal chat of the user; 0 if none.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def personal_chat_id @personal_chat_id end |
#personal_photo ⇒ TD::Types::ChatPhoto?
User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn’t returned in the list of user photos.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def personal_photo @personal_photo end |
#photo ⇒ TD::Types::ChatPhoto?
User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def photo @photo end |
#premium_gift_options ⇒ Array<TD::Types::PremiumPaymentOption>
The list of available options for gifting Telegram Premium to the user.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def @premium_gift_options end |
#public_photo ⇒ TD::Types::ChatPhoto?
User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn’t returned in the list of user photos.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def public_photo @public_photo end |
#set_chat_background ⇒ Boolean
True, if the user set chat background for both chat users and it wasn’t reverted yet.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def set_chat_background @set_chat_background end |
#supports_video_calls ⇒ Boolean
True, if a video call can be created with the user.
43 44 45 |
# File 'lib/tdlib/types/user_full_info.rb', line 43 def supports_video_calls @supports_video_calls end |