copyWith method

AddFileToDownloads copyWith({
  1. int? fileId,
  2. int? chatId,
  3. int? messageId,
  4. int? priority,
})

Implementation

AddFileToDownloads copyWith({
  int? fileId,
  int? chatId,
  int? messageId,
  int? priority,
}) =>
    AddFileToDownloads(
      fileId: fileId ?? this.fileId,
      chatId: chatId ?? this.chatId,
      messageId: messageId ?? this.messageId,
      priority: priority ?? this.priority,
    );