copyWith method

InputMessageVoiceNote copyWith({
  1. InputVoiceNote? voiceNote,
  2. FormattedText? caption,
  3. MessageSelfDestructType? selfDestructType,
})

Implementation

InputMessageVoiceNote copyWith({
  InputVoiceNote? voiceNote,
  FormattedText? caption,
  MessageSelfDestructType? selfDestructType,
}) => InputMessageVoiceNote(
  voiceNote: voiceNote ?? this.voiceNote,
  caption: caption ?? this.caption,
  selfDestructType: selfDestructType ?? this.selfDestructType,
);