copyWith method
InlineQueryResultVoice
copyWith({
- String? id,
- String? voiceUrl,
- String? title,
- ParseMode? parseMode,
- int? voiceDuration,
- InlineKeyboardMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
Copy method
Implementation
InlineQueryResultVoice copyWith({
String? id,
String? voiceUrl,
String? title,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
int? voiceDuration,
InlineKeyboardMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
}) {
return InlineQueryResultVoice(
id: id ?? this.id,
voiceUrl: voiceUrl ?? this.voiceUrl,
title: title ?? this.title,
caption: caption ?? this.caption,
parseMode: parseMode ?? this.parseMode,
captionEntities: captionEntities ?? this.captionEntities,
voiceDuration: voiceDuration ?? this.voiceDuration,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);
}