copyWith method
InputInlineQueryResultVoiceNote
copyWith({
- String? id,
- String? title,
- String? voiceNoteUrl,
- int? voiceNoteDuration,
- ReplyMarkup? replyMarkup,
- InputMessageContent? inputMessageContent,
override
Copy model with modified properties.
Properties:
id: Unique identifier of the query resulttitle: Title of the voice notevoice_note_url: The URL of the voice note filevoice_note_duration: Duration of the voice note, in secondsreply_markup: The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or nullinput_message_content: The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVoiceNote, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Implementation
@override
InputInlineQueryResultVoiceNote copyWith({
String? id,
String? title,
String? voiceNoteUrl,
int? voiceNoteDuration,
ReplyMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
}) =>
InputInlineQueryResultVoiceNote(
id: id ?? this.id,
title: title ?? this.title,
voiceNoteUrl: voiceNoteUrl ?? this.voiceNoteUrl,
voiceNoteDuration: voiceNoteDuration ?? this.voiceNoteDuration,
replyMarkup: replyMarkup ?? this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);