VoiceNote constructor

VoiceNote(
  1. {required int duration,
  2. required bytes waveform,
  3. required String mime_type,
  4. SpeechRecognitionResult? speech_recognition_result,
  5. required File voice,
  6. int? extra,
  7. int? clientId}
)

Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel

Implementation

VoiceNote