Module TelegramApi.Voice

module Voice: sig .. end

type voice = {
   file_id : string;
   duration : int;
   mime_type : string option;
   file_size : int option;
}
Represents a voice message (ogg)
val create : file_id:string ->
duration:int ->
?mime_type:string option ->
?file_size:int option -> unit -> voice
Create a voice in a concise manner

Read a voice out of some JSON

val read : Yojson.Safe.json -> voice
module Out: sig .. end
This module is used to deal with outgoing voice messages