copyWith method
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,
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,
);