SupergroupFullInfo

public struct SupergroupFullInfo : Codable, Equatable, FunctionResult

Contains full information about a supergroup or channel

  • Supergroup or channel description

    Declaration

    Swift

    public let description: String
  • Number of members in the supergroup or channel; 0 if unknown

    Declaration

    Swift

    public let memberCount: Int32
  • Number of privileged users in the supergroup or channel; 0 if unknown

    Declaration

    Swift

    public let administratorCount: Int32
  • Number of restricted users in the supergroup; 0 if unknown

    Declaration

    Swift

    public let restrictedCount: Int32
  • Number of users banned from chat; 0 if unknown

    Declaration

    Swift

    public let bannedCount: Int32
  • 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

    Declaration

    Swift

    public let linkedChatId: Int53
  • Delay between consecutive sent messages for non-administrator supergroup members, in seconds

    Declaration

    Swift

    public let slowModeDelay: Int32
  • Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero

    Declaration

    Swift

    public let slowModeDelayExpiresIn: Double
  • True, if members of the chat can be retrieved

    Declaration

    Swift

    public let canGetMembers: Bool
  • True, if the chat username can be changed

    Declaration

    Swift

    public let canSetUsername: Bool
  • True, if the supergroup sticker set can be changed

    Declaration

    Swift

    public let canSetStickerSet: Bool
  • True, if the supergroup location can be changed

    Declaration

    Swift

    public let canSetLocation: Bool
  • True, if the channel statistics is available through getChatStatisticsUrl

    Declaration

    Swift

    public let canViewStatistics: Bool
  • 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

    Declaration

    Swift

    public let isAllHistoryAvailable: Bool
  • Identifier of the supergroup sticker set; 0 if none

    Declaration

    Swift

    public let stickerSetId: TDInt64
  • Location to which the supergroup is connected; may be null

    Declaration

    Swift

    public let location: ChatLocation?
  • Invite link for this chat

    Declaration

    Swift

    public let inviteLink: String
  • Identifier of the basic group from which supergroup was upgraded; 0 if none

    Declaration

    Swift

    public let upgradedFromBasicGroupId: Int32
  • Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none

    Declaration

    Swift

    public let upgradedFromMaxMessageId: Int53
  • Contains full information about a supergroup or channel

    Declaration

    Swift

    public init(description: String, memberCount: Int32, administratorCount: Int32, restrictedCount: Int32, bannedCount: Int32, linkedChatId: Int53, slowModeDelay: Int32, slowModeDelayExpiresIn: Double, canGetMembers: Bool, canSetUsername: Bool, canSetStickerSet: Bool, canSetLocation: Bool, canViewStatistics: Bool, isAllHistoryAvailable: Bool, stickerSetId: TDInt64, location: ChatLocation?, inviteLink: String, upgradedFromBasicGroupId: Int32, upgradedFromMaxMessageId: Int53)

    Parameters

    description

    Supergroup or channel description

    memberCount

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

    administratorCount

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

    restrictedCount

    Number of restricted users in the supergroup; 0 if unknown

    bannedCount

    Number of users banned from chat; 0 if unknown

    linkedChatId

    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

    slowModeDelay

    Delay between consecutive sent messages for non-administrator supergroup members, in seconds

    slowModeDelayExpiresIn

    Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero

    canGetMembers

    True, if members of the chat can be retrieved

    canSetUsername

    True, if the chat username can be changed

    canSetStickerSet

    True, if the supergroup sticker set can be changed

    canSetLocation

    True, if the supergroup location can be changed

    canViewStatistics

    True, if the channel statistics is available through getChatStatisticsUrl

    isAllHistoryAvailable

    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

    stickerSetId

    Identifier of the supergroup sticker set; 0 if none

    location

    Location to which the supergroup is connected; may be null

    inviteLink

    Invite link for this chat

    upgradedFromBasicGroupId

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

    upgradedFromMaxMessageId

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