copyWith method
BotInfo
copyWith({
- String? shortDescription,
- String? description,
- Photo? photo,
- Animation? animation,
- int? managerBotUserId,
- List<
BotCommand> ? commands, - String? privacyPolicyUrl,
- ChatAdministratorRights? defaultGroupAdministratorRights,
- ChatAdministratorRights? defaultChannelAdministratorRights,
- AffiliateProgramInfo? affiliateProgram,
- int? webAppBackgroundLightColor,
- int? webAppBackgroundDarkColor,
- int? webAppHeaderLightColor,
- int? webAppHeaderDarkColor,
- BotVerificationParameters? verificationParameters,
- bool? canGetRevenueStatistics,
- bool? canManageEmojiStatus,
- bool? hasMediaPreviews,
- InternalLinkType? editCommandsLink,
- InternalLinkType? editDescriptionLink,
- InternalLinkType? editDescriptionMediaLink,
- InternalLinkType? editSettingsLink,
Implementation
BotInfo copyWith({
String? shortDescription,
String? description,
Photo? photo,
Animation? animation,
int? managerBotUserId,
BotMenuButton? menuButton,
List<BotCommand>? commands,
String? privacyPolicyUrl,
ChatAdministratorRights? defaultGroupAdministratorRights,
ChatAdministratorRights? defaultChannelAdministratorRights,
AffiliateProgramInfo? affiliateProgram,
int? webAppBackgroundLightColor,
int? webAppBackgroundDarkColor,
int? webAppHeaderLightColor,
int? webAppHeaderDarkColor,
BotVerificationParameters? verificationParameters,
bool? canGetRevenueStatistics,
bool? canManageEmojiStatus,
bool? hasMediaPreviews,
InternalLinkType? editCommandsLink,
InternalLinkType? editDescriptionLink,
InternalLinkType? editDescriptionMediaLink,
InternalLinkType? editSettingsLink,
}) => BotInfo(
shortDescription: shortDescription ?? this.shortDescription,
description: description ?? this.description,
photo: photo ?? this.photo,
animation: animation ?? this.animation,
managerBotUserId: managerBotUserId ?? this.managerBotUserId,
menuButton: menuButton ?? this.menuButton,
commands: commands ?? this.commands,
privacyPolicyUrl: privacyPolicyUrl ?? this.privacyPolicyUrl,
defaultGroupAdministratorRights:
defaultGroupAdministratorRights ?? this.defaultGroupAdministratorRights,
defaultChannelAdministratorRights:
defaultChannelAdministratorRights ??
this.defaultChannelAdministratorRights,
affiliateProgram: affiliateProgram ?? this.affiliateProgram,
webAppBackgroundLightColor:
webAppBackgroundLightColor ?? this.webAppBackgroundLightColor,
webAppBackgroundDarkColor:
webAppBackgroundDarkColor ?? this.webAppBackgroundDarkColor,
webAppHeaderLightColor:
webAppHeaderLightColor ?? this.webAppHeaderLightColor,
webAppHeaderDarkColor: webAppHeaderDarkColor ?? this.webAppHeaderDarkColor,
verificationParameters:
verificationParameters ?? this.verificationParameters,
canGetRevenueStatistics:
canGetRevenueStatistics ?? this.canGetRevenueStatistics,
canManageEmojiStatus: canManageEmojiStatus ?? this.canManageEmojiStatus,
hasMediaPreviews: hasMediaPreviews ?? this.hasMediaPreviews,
editCommandsLink: editCommandsLink ?? this.editCommandsLink,
editDescriptionLink: editDescriptionLink ?? this.editDescriptionLink,
editDescriptionMediaLink:
editDescriptionMediaLink ?? this.editDescriptionMediaLink,
editSettingsLink: editSettingsLink ?? this.editSettingsLink,
);