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 -
init(description:memberCount:administratorCount:restrictedCount:bannedCount:linkedChatId:slowModeDelay:slowModeDelayExpiresIn:canGetMembers:canSetUsername:canSetStickerSet:canSetLocation:canViewStatistics:isAllHistoryAvailable:stickerSetId:location:inviteLink:upgradedFromBasicGroupId:upgradedFromMaxMessageId:)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
descriptionSupergroup or channel description
memberCountNumber of members in the supergroup or channel; 0 if unknown
administratorCountNumber of privileged users in the supergroup or channel; 0 if unknown
restrictedCountNumber of restricted users in the supergroup; 0 if unknown
bannedCountNumber of users banned from chat; 0 if unknown
linkedChatIdChat 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
slowModeDelayDelay between consecutive sent messages for non-administrator supergroup members, in seconds
slowModeDelayExpiresInTime 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
canGetMembersTrue, if members of the chat can be retrieved
canSetUsernameTrue, if the chat username can be changed
canSetStickerSetTrue, if the supergroup sticker set can be changed
canSetLocationTrue, if the supergroup location can be changed
canViewStatisticsTrue, if the channel statistics is available through getChatStatisticsUrl
isAllHistoryAvailableTrue, 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
stickerSetIdIdentifier of the supergroup sticker set; 0 if none
locationLocation to which the supergroup is connected; may be null
inviteLinkInvite link for this chat
upgradedFromBasicGroupIdIdentifier of the basic group from which supergroup was upgraded; 0 if none
upgradedFromMaxMessageIdIdentifier of the last message in the basic group from which supergroup was upgraded; 0 if none
View on GitHub
Install in Dash
SupergroupFullInfo Structure Reference