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 -> TelegramApi.Voice.voice
val read : Yojson.Safe.json -> TelegramApi.Voice.voice
module Out :
sig
type voice = {
chat_id : int;
voice : string;
duration : int option;
disable_notification : bool;
reply_to_message_id : int option;
reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
}
val create :
chat_id:int ->
voice:string ->
?duration:int option ->
?disable_notification:bool ->
?reply_to:int option ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup option ->
unit -> TelegramApi.Voice.Out.voice
val prepare : TelegramApi.Voice.Out.voice -> string
val prepare_multipart :
TelegramApi.Voice.Out.voice -> string -> string Lwt.t
end
end