Class: TD::Types::SupergroupFullInfo

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

Overview

Contains full information about a supergroup or channel.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#administrator_count ⇒ Integer

Number of privileged users in the supergroup or channel; 0 if unknown.

Returns:

  • (Integer) —

    the current value of administrator_count



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def administrator_count
  @administrator_count
end

#banned_count ⇒ Integer

Number of users banned from chat; 0 if unknown.

Returns:

  • (Integer) —

    the current value of banned_count



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def banned_count
  @banned_count
end

#can_get_members ⇒ Boolean

True, if members of the chat can be retrieved.

Returns:

  • (Boolean) —

    the current value of can_get_members



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def can_get_members
  @can_get_members
end

#can_set_sticker_set ⇒ Boolean

True, if the supergroup sticker set can be changed.

Returns:

  • (Boolean) —

    the current value of can_set_sticker_set



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def can_set_sticker_set
  @can_set_sticker_set
end

#can_set_username ⇒ Boolean

True, if the chat can be made public.

Returns:

  • (Boolean) —

    the current value of can_set_username



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def can_set_username
  @can_set_username
end

#can_view_statistics ⇒ Boolean

True, if the channel statistics is available through getChatStatisticsUrl.

Returns:

  • (Boolean) —

    the current value of can_view_statistics



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def can_view_statistics
  @can_view_statistics
end

#description ⇒ String

Supergroup or channel description.

Returns:

  • (String) —

    the current value of description



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def description
  @description
end

Invite link for this chat.

Returns:

  • (String) —

    the current value of invite_link



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def invite_link
  @invite_link
end

#is_all_history_available ⇒ Boolean

True, if new chat members will have access to old messages. In public supergroups and both public and private channels, old messages are always available, so this option affects only private supergroups. The value of this field is only available for chat administrators.

Returns:

  • (Boolean) —

    the current value of is_all_history_available



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def is_all_history_available
  @is_all_history_available
end

#member_count ⇒ Integer

Number of members in the supergroup or channel; 0 if unknown.

Returns:

  • (Integer) —

    the current value of member_count



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def member_count
  @member_count
end

#restricted_count ⇒ Integer

Number of restricted users in the supergroup; 0 if unknown.

Returns:

  • (Integer) —

    the current value of restricted_count



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def restricted_count
  @restricted_count
end

#sticker_set_id ⇒ Integer

Identifier of the supergroup sticker set; 0 if none.

Returns:

  • (Integer) —

    the current value of sticker_set_id



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def sticker_set_id
  @sticker_set_id
end

#upgraded_from_basic_group_id ⇒ Integer

Identifier of the basic group from which supergroup was upgraded; 0 if none.

Returns:

  • (Integer) —

    the current value of upgraded_from_basic_group_id



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def upgraded_from_basic_group_id
  @upgraded_from_basic_group_id
end

#upgraded_from_max_message_id ⇒ Integer

Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none.

Returns:

  • (Integer) —

    the current value of upgraded_from_max_message_id



23
24
25
# File 'lib/tdlib/types/supergroup_full_info.rb', line 23

def upgraded_from_max_message_id
  @upgraded_from_max_message_id
end