copyWith method
InlineQueryResultCachedAudio
copyWith({
- String? id,
- String? audioFileId,
- ParseMode? parseMode,
- InlineKeyboardMarkup? replyMarkup,
- 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,
);
}