copyWith method

AttachmentMenuBot copyWith({
  1. int? botUserId,
  2. bool? supportsSelfChat,
  3. bool? supportsUserChats,
  4. bool? supportsBotChats,
  5. bool? supportsGroupChats,
  6. bool? supportsChannelChats,
  7. bool? supportsSettings,
  8. bool? requestWriteAccess,
  9. String? name,
  10. AttachmentMenuBotColor? nameColor,
  11. File? defaultIcon,
  12. File? iosStaticIcon,
  13. File? iosAnimatedIcon,
  14. File? androidIcon,
  15. File? macosIcon,
  16. AttachmentMenuBotColor? iconColor,
  17. File? webAppPlaceholder,
  18. dynamic extra,
  19. int? clientId,
})

Implementation

AttachmentMenuBot copyWith({
  int? botUserId,
  bool? supportsSelfChat,
  bool? supportsUserChats,
  bool? supportsBotChats,
  bool? supportsGroupChats,
  bool? supportsChannelChats,
  bool? supportsSettings,
  bool? requestWriteAccess,
  String? name,
  AttachmentMenuBotColor? nameColor,
  File? defaultIcon,
  File? iosStaticIcon,
  File? iosAnimatedIcon,
  File? androidIcon,
  File? macosIcon,
  AttachmentMenuBotColor? iconColor,
  File? webAppPlaceholder,
  dynamic extra,
  int? clientId,
}) =>
    AttachmentMenuBot(
      botUserId: botUserId ?? this.botUserId,
      supportsSelfChat: supportsSelfChat ?? this.supportsSelfChat,
      supportsUserChats: supportsUserChats ?? this.supportsUserChats,
      supportsBotChats: supportsBotChats ?? this.supportsBotChats,
      supportsGroupChats: supportsGroupChats ?? this.supportsGroupChats,
      supportsChannelChats: supportsChannelChats ?? this.supportsChannelChats,
      supportsSettings: supportsSettings ?? this.supportsSettings,
      requestWriteAccess: requestWriteAccess ?? this.requestWriteAccess,
      name: name ?? this.name,
      nameColor: nameColor ?? this.nameColor,
      defaultIcon: defaultIcon ?? this.defaultIcon,
      iosStaticIcon: iosStaticIcon ?? this.iosStaticIcon,
      iosAnimatedIcon: iosAnimatedIcon ?? this.iosAnimatedIcon,
      androidIcon: androidIcon ?? this.androidIcon,
      macosIcon: macosIcon ?? this.macosIcon,
      iconColor: iconColor ?? this.iconColor,
      webAppPlaceholder: webAppPlaceholder ?? this.webAppPlaceholder,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );