copyWith method
BotInfo
copyWith({
- String? shortDescription,
- String? description,
- Photo? photo,
- Animation? animation,
- List<
BotCommand> ? commands, - ChatAdministratorRights? defaultGroupAdministratorRights,
- ChatAdministratorRights? defaultChannelAdministratorRights,
- InternalLinkType? editCommandsLink,
- InternalLinkType? editDescriptionLink,
- InternalLinkType? editDescriptionMediaLink,
- InternalLinkType? editSettingsLink,
Implementation
BotInfo copyWith({
String? shortDescription,
String? description,
Photo? photo,
Animation? animation,
BotMenuButton? menuButton,
List<BotCommand>? commands,
ChatAdministratorRights? defaultGroupAdministratorRights,
ChatAdministratorRights? defaultChannelAdministratorRights,
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,
menuButton: menuButton ?? this.menuButton,
commands: commands ?? this.commands,
defaultGroupAdministratorRights: defaultGroupAdministratorRights ??
this.defaultGroupAdministratorRights,
defaultChannelAdministratorRights: defaultChannelAdministratorRights ??
this.defaultChannelAdministratorRights,
editCommandsLink: editCommandsLink ?? this.editCommandsLink,
editDescriptionLink: editDescriptionLink ?? this.editDescriptionLink,
editDescriptionMediaLink:
editDescriptionMediaLink ?? this.editDescriptionMediaLink,
editSettingsLink: editSettingsLink ?? this.editSettingsLink,
);