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.
-
#bot_commands ⇒ Array<TD::Types::BotCommands>
List of commands of bots in the group.
-
#can_enable_paid_reaction ⇒ Boolean
True, if paid reaction can be enabled in the channel chat; for channels only.
-
#can_get_members ⇒ Boolean
True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers.
-
#can_get_revenue_statistics ⇒ Boolean
True, if the supergroup or channel revenue statistics are available.
-
#can_get_star_revenue_statistics ⇒ Boolean
True, if the supergroup or channel Telegram Star revenue statistics are available.
-
#can_get_statistics ⇒ Boolean
True, if the supergroup or channel statistics are available.
-
#can_have_sponsored_messages ⇒ Boolean
True, if the chat can have sponsored messages.
-
#can_hide_members ⇒ Boolean
True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators.
-
#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_toggle_aggressive_anti_spam ⇒ Boolean
True, if aggressive anti-spam checks can be enabled or disabled in the supergroup.
-
#custom_emoji_sticker_set_id ⇒ Integer
Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none.
-
#description ⇒ TD::Types::String
Supergroup or channel description.
-
#has_aggressive_anti_spam_enabled ⇒ Boolean
True, if aggressive anti-spam checks are enabled in the supergroup.
-
#has_hidden_members ⇒ Boolean
True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers.
-
#has_paid_media_allowed ⇒ Boolean
True, if paid media can be sent and forwarded to the channel chat; for channels only.
-
#has_pinned_stories ⇒ Boolean
True, if the supergroup or channel has pinned stories.
-
#invite_link ⇒ TD::Types::ChatInviteLink?
Primary invite link for the 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 if none.
-
#member_count ⇒ Integer
Number of members in the supergroup or channel; 0 if unknown.
-
#my_boost_count ⇒ Integer
Number of times the current user boosted the supergroup or channel.
-
#photo ⇒ TD::Types::ChatPhoto?
Chat photo; may be null if empty or unknown.
-
#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 that must be shown before user sticker sets; 0 if none.
-
#unrestrict_boost_count ⇒ Integer
Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified.
-
#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.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def administrator_count @administrator_count end |
#banned_count ⇒ Integer
Number of users banned from chat; 0 if unknown.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def banned_count @banned_count end |
#bot_commands ⇒ Array<TD::Types::BotCommands>
List of commands of bots in the group.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def bot_commands @bot_commands end |
#can_enable_paid_reaction ⇒ Boolean
True, if paid reaction can be enabled in the channel chat; for channels only.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_enable_paid_reaction @can_enable_paid_reaction end |
#can_get_members ⇒ Boolean
True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_get_members @can_get_members end |
#can_get_revenue_statistics ⇒ Boolean
True, if the supergroup or channel revenue statistics are available.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_get_revenue_statistics @can_get_revenue_statistics end |
#can_get_star_revenue_statistics ⇒ Boolean
True, if the supergroup or channel Telegram Star revenue statistics are available.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_get_star_revenue_statistics @can_get_star_revenue_statistics end |
#can_get_statistics ⇒ Boolean
True, if the supergroup or channel statistics are available.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_get_statistics @can_get_statistics end |
#can_have_sponsored_messages ⇒ Boolean
True, if the chat can have sponsored messages. The value of this field is only available to the owner of the chat.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def @can_have_sponsored_messages end |
#can_hide_members ⇒ Boolean
True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_hide_members @can_hide_members end |
#can_set_location ⇒ Boolean
True, if the supergroup location can be changed.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_set_location @can_set_location end |
#can_set_sticker_set ⇒ Boolean
True, if the supergroup sticker set can be changed.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_set_sticker_set @can_set_sticker_set end |
#can_toggle_aggressive_anti_spam ⇒ Boolean
True, if aggressive anti-spam checks can be enabled or disabled in the supergroup.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def can_toggle_aggressive_anti_spam @can_toggle_aggressive_anti_spam end |
#custom_emoji_sticker_set_id ⇒ Integer
Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def custom_emoji_sticker_set_id @custom_emoji_sticker_set_id end |
#description ⇒ TD::Types::String
Supergroup or channel description.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def description @description end |
#has_aggressive_anti_spam_enabled ⇒ Boolean
True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def has_aggressive_anti_spam_enabled @has_aggressive_anti_spam_enabled end |
#has_hidden_members ⇒ Boolean
True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def has_hidden_members @has_hidden_members end |
#has_paid_media_allowed ⇒ Boolean
True, if paid media can be sent and forwarded to the channel chat; for channels only.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def has_paid_media_allowed @has_paid_media_allowed end |
#has_pinned_stories ⇒ Boolean
True, if the supergroup or channel has pinned stories.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def has_pinned_stories @has_pinned_stories end |
#invite_link ⇒ TD::Types::ChatInviteLink?
Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def invite_link @invite_link end |
#is_all_history_available ⇒ Boolean
True, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old messages are always available, so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 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.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def linked_chat_id @linked_chat_id end |
#location ⇒ TD::Types::ChatLocation?
Location to which the supergroup is connected; may be null if none.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def location @location end |
#member_count ⇒ Integer
Number of members in the supergroup or channel; 0 if unknown.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def member_count @member_count end |
#my_boost_count ⇒ Integer
Number of times the current user boosted the supergroup or channel.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def my_boost_count @my_boost_count end |
#photo ⇒ TD::Types::ChatPhoto?
Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def photo @photo end |
#restricted_count ⇒ Integer
Number of restricted users in the supergroup; 0 if unknown.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def restricted_count @restricted_count end |
#slow_mode_delay ⇒ Integer
Delay between consecutive sent messages for non-administrator supergroup members, in seconds.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 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.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def slow_mode_delay_expires_in @slow_mode_delay_expires_in end |
#sticker_set_id ⇒ Integer
Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def sticker_set_id @sticker_set_id end |
#unrestrict_boost_count ⇒ Integer
Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def unrestrict_boost_count @unrestrict_boost_count end |
#upgraded_from_basic_group_id ⇒ Integer
Identifier of the basic group from which supergroup was upgraded; 0 if none.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 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.
61 62 63 |
# File 'lib/tdlib/types/supergroup_full_info.rb', line 61 def @upgraded_from_max_message_id end |