copyWith method

BotInfo copyWith({
  1. String? shortDescription,
  2. String? description,
  3. Photo? photo,
  4. Animation? animation,
  5. int? managerBotUserId,
  6. BotMenuButton? menuButton,
  7. List<BotCommand>? commands,
  8. String? privacyPolicyUrl,
  9. ChatAdministratorRights? defaultGroupAdministratorRights,
  10. ChatAdministratorRights? defaultChannelAdministratorRights,
  11. AffiliateProgramInfo? affiliateProgram,
  12. int? webAppBackgroundLightColor,
  13. int? webAppBackgroundDarkColor,
  14. int? webAppHeaderLightColor,
  15. int? webAppHeaderDarkColor,
  16. BotVerificationParameters? verificationParameters,
  17. bool? canGetRevenueStatistics,
  18. bool? canManageEmojiStatus,
  19. bool? hasMediaPreviews,
  20. InternalLinkType? editCommandsLink,
  21. InternalLinkType? editDescriptionLink,
  22. InternalLinkType? editDescriptionMediaLink,
  23. 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,
    );