Class: TD::Types::UserFullInfo

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

Overview

Contains full information about a user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#bioTD::Types::FormattedText?

A short user bio; may be null for bots.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def bio
  @bio
end

#birthdateTD::Types::Birthdate?

Birthdate of the user; may be null if unknown.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def birthdate
  @birthdate
end

#block_listTD::Types::BlockList?

Block list to which the user is added; may be null if none.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def block_list
  @block_list
end

#bot_infoTD::Types::BotInfo?

For bots, information about the bot; may be null if the user isn’t a bot.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def bot_info
  @bot_info
end

#business_infoTD::Types::BusinessInfo?

Information about business settings for Telegram Business accounts; may be null if none.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def business_info
  @business_info
end

#can_be_calledBoolean

True, if the user can be called.

Returns:

  • (Boolean)

    the current value of 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_countInteger

Number of group chats where both the other user and the current user are a member; 0 for the current user.

Returns:

  • (Integer)

    the current value of group_in_common_count



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_storiesBoolean

True, if the user has posted to profile stories.

Returns:

  • (Boolean)

    the current value of 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_callsBoolean

True, if the user can’t be called due to their privacy settings.

Returns:

  • (Boolean)

    the current value of has_private_calls



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def has_private_calls
  @has_private_calls
end

#has_private_forwardsBoolean

True, if the user can’t be linked in forwarded messages due to their privacy settings.

Returns:

  • (Boolean)

    the current value of has_private_forwards



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_messagesBoolean

True, if voice and video notes can’t be sent or forwarded to the user.

Returns:

  • (Boolean)

    the current value of has_restricted_voice_and_video_note_messages



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def has_restricted_voice_and_video_note_messages
  @has_restricted_voice_and_video_note_messages
end

#has_sponsored_messages_enabledBoolean

True, if the user always enabled sponsored messages; known only for the current user.

Returns:

  • (Boolean)

    the current value of has_sponsored_messages_enabled



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def has_sponsored_messages_enabled
  @has_sponsored_messages_enabled
end

#need_phone_number_privacy_exceptionBoolean

True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.

Returns:

  • (Boolean)

    the current value of need_phone_number_privacy_exception



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_idInteger

Identifier of the personal chat of the user; 0 if none.

Returns:

  • (Integer)

    the current value of personal_chat_id



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def personal_chat_id
  @personal_chat_id
end

#personal_photoTD::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.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def personal_photo
  @personal_photo
end

#photoTD::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.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def photo
  @photo
end

#premium_gift_optionsArray<TD::Types::PremiumPaymentOption>

The list of available options for gifting Telegram Premium to the user.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def premium_gift_options
  @premium_gift_options
end

#public_photoTD::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.

Returns:



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def public_photo
  @public_photo
end

#set_chat_backgroundBoolean

True, if the user set chat background for both chat users and it wasn’t reverted yet.

Returns:

  • (Boolean)

    the current value of set_chat_background



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def set_chat_background
  @set_chat_background
end

#supports_video_callsBoolean

True, if a video call can be created with the user.

Returns:

  • (Boolean)

    the current value of supports_video_calls



43
44
45
# File 'lib/tdlib/types/user_full_info.rb', line 43

def supports_video_calls
  @supports_video_calls
end