copyWith method

InlineQueryResultAudio copyWith({
  1. String? id,
  2. String? audioUrl,
  3. String? title,
  4. String? caption,
  5. ParseMode? parseMode,
  6. List<MessageEntity>? captionEntities,
  7. String? performer,
  8. int? audioDuration,
  9. InlineKeyboardMarkup? replyMarkup,
  10. InputMessageContent? inputMessageContent,
})

Copy method

Implementation

InlineQueryResultAudio copyWith({
  String? id,
  String? audioUrl,
  String? title,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  String? performer,
  int? audioDuration,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
}) {
  return InlineQueryResultAudio(
    id: id ?? this.id,
    audioUrl: audioUrl ?? this.audioUrl,
    title: title ?? this.title,
    caption: caption ?? this.caption,
    parseMode: parseMode ?? this.parseMode,
    captionEntities: captionEntities ?? this.captionEntities,
    performer: performer ?? this.performer,
    audioDuration: audioDuration ?? this.audioDuration,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
  );
}