sig
type voice = {
file_id : string;
duration : int;
mime_type : string option;
file_size : int option;
}
val create :
file_id:string ->
duration:int ->
?mime_type:string option ->
?file_size:int option -> unit -> Api.Voice.voice
val read : Yojson.Safe.json -> Api.Voice.voice
module Out :
sig
type voice = {
chat_id : int;
voice : string;
duration : int option;
reply_to_message_id : int option;
reply_markup : unit option;
}
val create :
chat_id:int ->
voice:string ->
?duration:int option ->
?reply_to:int option -> unit -> Api.Voice.Out.voice
val prepare : Api.Voice.Out.voice -> string
val prepare_multipart : Api.Voice.Out.voice -> string -> string Lwt.t
end
end