copyWith method
InlineQueryResultAudio
copyWith({
- String? id,
- String? audioUrl,
- String? title,
- ParseMode? parseMode,
- String? performer,
- int? audioDuration,
- InlineKeyboardMarkup? replyMarkup,
- 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,
);
}