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 (except the full list of profile photos).

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#bio ⇒ String

A short user bio.

Returns:

  • (String) —

    the current value of bio



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

def bio
  @bio
end

#bot_info ⇒ TD::Types::BotInfo?

If the user is a bot, information about the bot; may be null.

Returns:



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

def bot_info
  @bot_info
end

#can_be_called ⇒ Boolean

True, if the user can be called.

Returns:

  • (Boolean) —

    the current value of can_be_called



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

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.

Returns:

  • (Integer) —

    the current value of group_in_common_count



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

def group_in_common_count
  @group_in_common_count
end

#has_private_calls ⇒ Boolean

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

Returns:

  • (Boolean) —

    the current value of has_private_calls



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

def has_private_calls
  @has_private_calls
end

#is_blocked ⇒ Boolean

True, if the user is blacklisted by the current user.

Returns:

  • (Boolean) —

    the current value of is_blocked



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

def is_blocked
  @is_blocked
end

#share_text ⇒ String

For bots, the text that is included with the link when users share the bot.

Returns:

  • (String) —

    the current value of share_text



12
13
14
# File 'lib/tdlib/types/user_full_info.rb', line 12

def share_text
  @share_text
end