Class: TD::Types::SupergroupFullInfo
- Defined in:
- lib/tdlib/types/supergroup_full_info.rb
Overview
Contains full information about a supergroup or channel.
Instance Attribute Summary collapse
-
#administrator_count ⇒ Integer
Number of privileged users in the supergroup or channel; 0 if unknown.
-
#banned_count ⇒ Integer
Number of users banned from chat; 0 if unknown.
-
#can_get_members ⇒ Boolean
True, if members of the chat can be retrieved.
-
#can_get_statistics ⇒ Boolean
True, if the supergroup or channel statistics are available.
-
#can_set_location ⇒ Boolean
True, if the supergroup location can be changed.
-
#can_set_sticker_set ⇒ Boolean
True, if the supergroup sticker set can be changed.
-
#can_set_username ⇒ Boolean
True, if the chat username can be changed.
-
#description ⇒ TD::Types::String
Supergroup or channel description.
-
#invite_link ⇒ TD::Types::ChatInviteLink?
Primary invite link for this chat; may be null.
-
#is_all_history_available ⇒ Boolean
True, if new chat members will have access to old messages.
-
#linked_chat_id ⇒ Integer
Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown.
-
#location ⇒ TD::Types::ChatLocation?
Location to which the supergroup is connected; may be null.
-
#member_count ⇒ Integer
Number of members in the supergroup or channel; 0 if unknown.
-
#photo ⇒ TD::Types::ChatPhoto?
Chat photo; may be null.
-
#restricted_count ⇒ Integer
Number of restricted users in the supergroup; 0 if unknown.
-
#slow_mode_delay ⇒ Integer
Delay between consecutive sent messages for non-administrator supergroup members, in seconds.
-
#slow_mode_delay_expires_in ⇒ Float
Time left before next message can be sent in the supergroup, in seconds.
-
#sticker_set_id ⇒ Integer
Identifier of the supergroup sticker set; 0 if none.
-
#upgraded_from_basic_group_id ⇒ Integer
Identifier of the basic group from which supergroup was upgraded; 0 if none.
-
#upgraded_from_max_message_id ⇒ Integer
Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none.
Method Summary
Methods inherited from Base
Instance Attribute Details
#administrator_count ⇒ Integer
Number of privileged users in the supergroup or channel; 0 if unknown.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def administrator_count @administrator_count end |
#banned_count ⇒ Integer
Number of users banned from chat; 0 if unknown.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def banned_count @banned_count end |
#can_get_members ⇒ Boolean
True, if members of the chat can be retrieved.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def can_get_members @can_get_members end |
#can_get_statistics ⇒ Boolean
True, if the supergroup or channel statistics are available.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def can_get_statistics @can_get_statistics end |
#can_set_location ⇒ Boolean
True, if the supergroup location can be changed.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def can_set_location @can_set_location end |
#can_set_sticker_set ⇒ Boolean
True, if the supergroup sticker set can be changed.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def can_set_sticker_set @can_set_sticker_set end |
#can_set_username ⇒ Boolean
True, if the chat username can be changed.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def can_set_username @can_set_username end |
#description ⇒ TD::Types::String
Supergroup or channel description.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def description @description end |
#invite_link ⇒ TD::Types::ChatInviteLink?
Primary invite link for this chat; may be null. For chat administrators with can_invite_users right only.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def invite_link @invite_link end |
#is_all_history_available ⇒ Boolean
True, if new chat members will have access to old messages. In public or discussion groups and both public and private channels, old messages are always available, so this option affects only private supergroups without a linked chat. The value of this field is only available for chat administrators.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def is_all_history_available @is_all_history_available end |
#linked_chat_id ⇒ Integer
Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def linked_chat_id @linked_chat_id end |
#location ⇒ TD::Types::ChatLocation?
Location to which the supergroup is connected; may be null.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def location @location end |
#member_count ⇒ Integer
Number of members in the supergroup or channel; 0 if unknown.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def member_count @member_count end |
#photo ⇒ TD::Types::ChatPhoto?
Chat photo; may be null.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def photo @photo end |
#restricted_count ⇒ Integer
Number of restricted users in the supergroup; 0 if unknown.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def restricted_count @restricted_count end |
#slow_mode_delay ⇒ Integer
Delay between consecutive sent messages for non-administrator supergroup members, in seconds.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def slow_mode_delay @slow_mode_delay end |
#slow_mode_delay_expires_in ⇒ Float
Time left before next message can be sent in the supergroup, in seconds. An Update::SupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def slow_mode_delay_expires_in @slow_mode_delay_expires_in end |
#sticker_set_id ⇒ Integer
Identifier of the supergroup sticker set; 0 if none.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 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.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 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.
34 35 36 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 34 def @upgraded_from_max_message_id end |