Module TelegramApi.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;
   disable_notification : bool;
   reply_to_message_id : int option;
   reply_markup : TelegramApi.ReplyMarkup.reply_markup 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
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 -> voice
Create a voice in a concise manner

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