copyWith method
SupergroupFullInfo
copyWith({
- ChatPhoto? photo,
- int? communityId,
- String? description,
- int? memberCount,
- int? administratorCount,
- int? restrictedCount,
- int? bannedCount,
- int? linkedChatId,
- int? directMessagesChatId,
- int? slowModeDelay,
- double? slowModeDelayExpiresIn,
- bool? canEnablePaidMessages,
- bool? canEnablePaidReaction,
- bool? canGetMembers,
- bool? hasHiddenMembers,
- bool? canHideMembers,
- bool? canSetStickerSet,
- bool? canSetLocation,
- bool? canGetStatistics,
- bool? canGetRevenueStatistics,
- bool? canGetStarRevenueStatistics,
- bool? canSendGift,
- bool? canToggleAggressiveAntiSpam,
- bool? isAllHistoryAvailable,
- bool? canHaveSponsoredMessages,
- bool? hasAggressiveAntiSpamEnabled,
- bool? hasPaidMediaAllowed,
- bool? hasPinnedStories,
- int? giftCount,
- int? myBoostCount,
- int? unrestrictBoostCount,
- int? outgoingPaidMessageStarCount,
- int? stickerSetId,
- int? customEmojiStickerSetId,
- ChatLocation? location,
- ChatInviteLink? inviteLink,
- int? guardBotUserId,
- List<
BotCommands> ? botCommands, - BotVerification? botVerification,
- ProfileTab? mainProfileTab,
- int? upgradedFromBasicGroupId,
- int? upgradedFromMaxMessageId,
Implementation
SupergroupFullInfo copyWith({
ChatPhoto? photo,
int? communityId,
String? description,
int? memberCount,
int? administratorCount,
int? restrictedCount,
int? bannedCount,
int? linkedChatId,
int? directMessagesChatId,
int? slowModeDelay,
double? slowModeDelayExpiresIn,
bool? canEnablePaidMessages,
bool? canEnablePaidReaction,
bool? canGetMembers,
bool? hasHiddenMembers,
bool? canHideMembers,
bool? canSetStickerSet,
bool? canSetLocation,
bool? canGetStatistics,
bool? canGetRevenueStatistics,
bool? canGetStarRevenueStatistics,
bool? canSendGift,
bool? canToggleAggressiveAntiSpam,
bool? isAllHistoryAvailable,
bool? canHaveSponsoredMessages,
bool? hasAggressiveAntiSpamEnabled,
bool? hasPaidMediaAllowed,
bool? hasPinnedStories,
int? giftCount,
int? myBoostCount,
int? unrestrictBoostCount,
int? outgoingPaidMessageStarCount,
int? stickerSetId,
int? customEmojiStickerSetId,
ChatLocation? location,
ChatInviteLink? inviteLink,
int? guardBotUserId,
List<BotCommands>? botCommands,
BotVerification? botVerification,
ProfileTab? mainProfileTab,
int? upgradedFromBasicGroupId,
int? upgradedFromMaxMessageId,
}) => SupergroupFullInfo(
photo: photo ?? this.photo,
communityId: communityId ?? this.communityId,
description: description ?? this.description,
memberCount: memberCount ?? this.memberCount,
administratorCount: administratorCount ?? this.administratorCount,
restrictedCount: restrictedCount ?? this.restrictedCount,
bannedCount: bannedCount ?? this.bannedCount,
linkedChatId: linkedChatId ?? this.linkedChatId,
directMessagesChatId: directMessagesChatId ?? this.directMessagesChatId,
slowModeDelay: slowModeDelay ?? this.slowModeDelay,
slowModeDelayExpiresIn:
slowModeDelayExpiresIn ?? this.slowModeDelayExpiresIn,
canEnablePaidMessages: canEnablePaidMessages ?? this.canEnablePaidMessages,
canEnablePaidReaction: canEnablePaidReaction ?? this.canEnablePaidReaction,
canGetMembers: canGetMembers ?? this.canGetMembers,
hasHiddenMembers: hasHiddenMembers ?? this.hasHiddenMembers,
canHideMembers: canHideMembers ?? this.canHideMembers,
canSetStickerSet: canSetStickerSet ?? this.canSetStickerSet,
canSetLocation: canSetLocation ?? this.canSetLocation,
canGetStatistics: canGetStatistics ?? this.canGetStatistics,
canGetRevenueStatistics:
canGetRevenueStatistics ?? this.canGetRevenueStatistics,
canGetStarRevenueStatistics:
canGetStarRevenueStatistics ?? this.canGetStarRevenueStatistics,
canSendGift: canSendGift ?? this.canSendGift,
canToggleAggressiveAntiSpam:
canToggleAggressiveAntiSpam ?? this.canToggleAggressiveAntiSpam,
isAllHistoryAvailable: isAllHistoryAvailable ?? this.isAllHistoryAvailable,
canHaveSponsoredMessages:
canHaveSponsoredMessages ?? this.canHaveSponsoredMessages,
hasAggressiveAntiSpamEnabled:
hasAggressiveAntiSpamEnabled ?? this.hasAggressiveAntiSpamEnabled,
hasPaidMediaAllowed: hasPaidMediaAllowed ?? this.hasPaidMediaAllowed,
hasPinnedStories: hasPinnedStories ?? this.hasPinnedStories,
giftCount: giftCount ?? this.giftCount,
myBoostCount: myBoostCount ?? this.myBoostCount,
unrestrictBoostCount: unrestrictBoostCount ?? this.unrestrictBoostCount,
outgoingPaidMessageStarCount:
outgoingPaidMessageStarCount ?? this.outgoingPaidMessageStarCount,
stickerSetId: stickerSetId ?? this.stickerSetId,
customEmojiStickerSetId:
customEmojiStickerSetId ?? this.customEmojiStickerSetId,
location: location ?? this.location,
inviteLink: inviteLink ?? this.inviteLink,
guardBotUserId: guardBotUserId ?? this.guardBotUserId,
botCommands: botCommands ?? this.botCommands,
botVerification: botVerification ?? this.botVerification,
mainProfileTab: mainProfileTab ?? this.mainProfileTab,
upgradedFromBasicGroupId:
upgradedFromBasicGroupId ?? this.upgradedFromBasicGroupId,
upgradedFromMaxMessageId:
upgradedFromMaxMessageId ?? this.upgradedFromMaxMessageId,
);