copyWith method

InlineQueryResultCachedAudio copyWith({
  1. String? id,
  2. String? audioFileId,
  3. String? caption,
  4. ParseMode? parseMode,
  5. List<MessageEntity>? captionEntities,
  6. InlineKeyboardMarkup? replyMarkup,
  7. InputMessageContent? inputMessageContent,
})

Copy method

Implementation

InlineQueryResultCachedAudio copyWith({
  String? id,
  String? audioFileId,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
}) {
  return InlineQueryResultCachedAudio(
    id: id ?? this.id,
    audioFileId: audioFileId ?? this.audioFileId,
    caption: caption ?? this.caption,
    parseMode: parseMode ?? this.parseMode,
    captionEntities: captionEntities ?? this.captionEntities,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
  );
}