SupergroupFullInfo class

Inheritance

Constructors

SupergroupFullInfo({ChatPhoto? photo, required String description, required int memberCount, required int administratorCount, required int restrictedCount, required int bannedCount, required int linkedChatId, required int slowModeDelay, required double slowModeDelayExpiresIn, required bool canGetMembers, required bool hasHiddenMembers, required bool canHideMembers, required bool canSetStickerSet, required bool canSetLocation, required bool canGetStatistics, required bool canToggleAggressiveAntiSpam, required bool isAllHistoryAvailable, required bool hasAggressiveAntiSpamEnabled, required int stickerSetId, ChatLocation? location, ChatInviteLink? inviteLink, required List<BotCommands> botCommands, required int upgradedFromBasicGroupId, required int upgradedFromMaxMessageId, dynamic extra, int? clientId})
Contains full information about a supergroup or channel
const
SupergroupFullInfo.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

administratorCount int
administratorCount Number of privileged users in the supergroup or channel; 0 if unknown
final
bannedCount int
bannedCount Number of users banned from chat; 0 if unknown
final
botCommands List<BotCommands>
botCommands List of commands of bots in the group
final
canGetMembers bool
canGetMembers True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers
final
canGetStatistics bool
canGetStatistics True, if the supergroup or channel statistics are available
final
canHideMembers bool
canHideMembers True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators
final
canSetLocation bool
canSetLocation True, if the supergroup location can be changed
final
canSetStickerSet bool
canSetStickerSet True, if the supergroup sticker set can be changed
final
canToggleAggressiveAntiSpam bool
canToggleAggressiveAntiSpam True, if aggressive anti-spam checks can be enabled or disabled in the supergroup
final
clientId int?
clientId client identifier
final
description String
description Supergroup or channel description
final
extra → dynamic
extra callback sign
final
hasAggressiveAntiSpamEnabled bool
hasAggressiveAntiSpamEnabled True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators
final
hashCode int
The hash code for this object.
no setterinherited
hasHiddenMembers bool
hasHiddenMembers True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers
final
inviteLink Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only
final
isAllHistoryAvailable bool
isAllHistoryAvailable 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
final
linkedChatId int
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
final
location ChatLocation?
location Location to which the supergroup is connected; may be null if none
final
memberCount int
memberCount Number of members in the supergroup or channel; 0 if unknown
final
photo ChatPhoto?
photo Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo
final
restrictedCount int
restrictedCount Number of restricted users in the supergroup; 0 if unknown
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slowModeDelay int
slowModeDelay Delay between consecutive sent messages for non-administrator supergroup members, in seconds
final
slowModeDelayExpiresIn double
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
final
stickerSetId int
stickerSetId Identifier of the supergroup sticker set; 0 if none
final
upgradedFromBasicGroupId int
upgradedFromBasicGroupId Identifier of the basic group from which supergroup was upgraded; 0 if none
final
upgradedFromMaxMessageId int
upgradedFromMaxMessageId Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none
final

Methods

copyWith({ChatPhoto? photo, String? description, int? memberCount, int? administratorCount, int? restrictedCount, int? bannedCount, int? linkedChatId, int? slowModeDelay, double? slowModeDelayExpiresIn, bool? canGetMembers, bool? hasHiddenMembers, bool? canHideMembers, bool? canSetStickerSet, bool? canSetLocation, bool? canGetStatistics, bool? canToggleAggressiveAntiSpam, bool? isAllHistoryAvailable, bool? hasAggressiveAntiSpamEnabled, int? stickerSetId, ChatLocation? location, ChatInviteLink? inviteLink, List<BotCommands>? botCommands, int? upgradedFromBasicGroupId, int? upgradedFromMaxMessageId, dynamic extra, int? clientId}) SupergroupFullInfo
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String