copyWith method

AttachmentMenuBot copyWith({
  1. int? botUserId,
  2. bool? supportsSelfChat,
  3. bool? supportsUserChats,
  4. bool? supportsBotChats,
  5. bool? supportsGroupChats,
  6. bool? supportsChannelChats,
  7. bool? requestWriteAccess,
  8. bool? isAdded,
  9. bool? showInAttachmentMenu,
  10. bool? showInSideMenu,
  11. bool? showDisclaimerInSideMenu,
  12. String? name,
  13. AttachmentMenuBotColor? nameColor,
  14. File? defaultIcon,
  15. File? iosStaticIcon,
  16. File? iosAnimatedIcon,
  17. File? iosSideMenuIcon,
  18. File? androidIcon,
  19. File? androidSideMenuIcon,
  20. File? macosIcon,
  21. File? macosSideMenuIcon,
  22. AttachmentMenuBotColor? iconColor,
  23. File? webAppPlaceholder,
})

Implementation

AttachmentMenuBot copyWith({
  int? botUserId,
  bool? supportsSelfChat,
  bool? supportsUserChats,
  bool? supportsBotChats,
  bool? supportsGroupChats,
  bool? supportsChannelChats,
  bool? requestWriteAccess,
  bool? isAdded,
  bool? showInAttachmentMenu,
  bool? showInSideMenu,
  bool? showDisclaimerInSideMenu,
  String? name,
  AttachmentMenuBotColor? nameColor,
  File? defaultIcon,
  File? iosStaticIcon,
  File? iosAnimatedIcon,
  File? iosSideMenuIcon,
  File? androidIcon,
  File? androidSideMenuIcon,
  File? macosIcon,
  File? macosSideMenuIcon,
  AttachmentMenuBotColor? iconColor,
  File? webAppPlaceholder,
}) => 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,
  requestWriteAccess: requestWriteAccess ?? this.requestWriteAccess,
  isAdded: isAdded ?? this.isAdded,
  showInAttachmentMenu: showInAttachmentMenu ?? this.showInAttachmentMenu,
  showInSideMenu: showInSideMenu ?? this.showInSideMenu,
  showDisclaimerInSideMenu:
      showDisclaimerInSideMenu ?? this.showDisclaimerInSideMenu,
  name: name ?? this.name,
  nameColor: nameColor ?? this.nameColor,
  defaultIcon: defaultIcon ?? this.defaultIcon,
  iosStaticIcon: iosStaticIcon ?? this.iosStaticIcon,
  iosAnimatedIcon: iosAnimatedIcon ?? this.iosAnimatedIcon,
  iosSideMenuIcon: iosSideMenuIcon ?? this.iosSideMenuIcon,
  androidIcon: androidIcon ?? this.androidIcon,
  androidSideMenuIcon: androidSideMenuIcon ?? this.androidSideMenuIcon,
  macosIcon: macosIcon ?? this.macosIcon,
  macosSideMenuIcon: macosSideMenuIcon ?? this.macosSideMenuIcon,
  iconColor: iconColor ?? this.iconColor,
  webAppPlaceholder: webAppPlaceholder ?? this.webAppPlaceholder,
);