copyWith method

BotCommands copyWith({
  1. int? botUserId,
  2. List<BotCommand>? commands,
})

Implementation

BotCommands copyWith({int? botUserId, List<BotCommand>? commands}) =>
    BotCommands(
      botUserId: botUserId ?? this.botUserId,
      commands: commands ?? this.commands,
    );