Module Api.Voice.Out

module Out: sig .. end
This module is used to deal with outgoing voice messages

type voice = {
   chat_id : int;
   voice : string;
   duration : int option;
   reply_to_message_id : int option;
   reply_markup : unit option;
}
Represents the outgoing voice message. Note that the `voice` field can either be an existing file id or the raw bytes from a file

Create a `voice` in a concise manner

val create : chat_id:int ->
voice:string ->
?duration:int option -> ?reply_to:int option -> unit -> voice
Prepare a `voice` for sending -- used in the case of a file id
val prepare : voice -> string
Prepare a `voice` for sending -- used in the case of the raw bytes
val prepare_multipart : voice -> string -> string Lwt.t