copyWith method

BotCommands copyWith({
  1. int? botUserId,
  2. List<BotCommand>? commands,
  3. dynamic extra,
  4. int? clientId,
})

Implementation

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