module TD::Types # Contains full information about a supergroup or channel. # # @attr photo [TD::Types::ChatPhoto, nil] Chat photo; may be null. # @attr description [String] Supergroup or channel description. # @attr member_count [Integer] Number of members in the supergroup or channel; 0 if unknown. # @attr administrator_count [Integer] Number of privileged users in the supergroup or channel; 0 if unknown. # @attr restricted_count [Integer] Number of restricted users in the supergroup; 0 if unknown. # @attr banned_count [Integer] Number of users banned from chat; 0 if unknown. # @attr 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. # @attr slow_mode_delay [Integer] Delay between consecutive sent messages for non-administrator supergroup members, # in seconds. # @attr slow_mode_delay_expires_in [Float] Time left before next message can be sent in the supergroup, in seconds. # An {TD::Types::Update::SupergroupFullInfo} update is not triggered when value of this field changes, but both new # and old values are non-zero. # @attr can_get_members [Boolean] True, if members of the chat can be retrieved. # @attr can_set_username [Boolean] True, if the chat username can be changed. # @attr can_set_sticker_set [Boolean] True, if the supergroup sticker set can be changed. # @attr can_set_location [Boolean] True, if the supergroup location can be changed. # @attr can_get_statistics [Boolean] True, if the supergroup or channel statistics are available. # @attr 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. # @attr sticker_set_id [Integer] Identifier of the supergroup sticker set; 0 if none. # @attr location [TD::Types::ChatLocation, nil] Location to which the supergroup is connected; may be null. # @attr invite_link [TD::Types::ChatInviteLink, nil] Primary invite link for this chat; may be null. # For chat administrators with can_invite_users right only. # @attr upgraded_from_basic_group_id [Integer] Identifier of the basic group from which supergroup was upgraded; 0 if # none. # @attr upgraded_from_max_message_id [Integer] Identifier of the last message in the basic group from which # supergroup was upgraded; 0 if none. class SupergroupFullInfo < Base attribute :photo, TD::Types::ChatPhoto.optional.default(nil) attribute :description, TD::Types::String attribute :member_count, TD::Types::Integer attribute :administrator_count, TD::Types::Integer attribute :restricted_count, TD::Types::Integer attribute :banned_count, TD::Types::Integer attribute :linked_chat_id, TD::Types::Integer attribute :slow_mode_delay, TD::Types::Integer attribute :slow_mode_delay_expires_in, TD::Types::Float attribute :can_get_members, TD::Types::Bool attribute :can_set_username, TD::Types::Bool attribute :can_set_sticker_set, TD::Types::Bool attribute :can_set_location, TD::Types::Bool attribute :can_get_statistics, TD::Types::Bool attribute :is_all_history_available, TD::Types::Bool attribute :sticker_set_id, TD::Types::Integer attribute :location, TD::Types::ChatLocation.optional.default(nil) attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil) attribute :upgraded_from_basic_group_id, TD::Types::Integer attribute :upgraded_from_max_message_id, TD::Types::Integer end end