Module Api.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)

Create a `voice` in a concise manner

val create : file_id:string ->
duration:int ->
?mime_type:string option -> ?file_size:int option -> unit -> voice
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