package telegraml

  1. Overview
  2. Docs

This module is used to deal with outgoing audio messages

type audio = {
  1. chat_id : int;
  2. audio : string;
  3. duration : int option;
  4. performer : string;
  5. title : string;
  6. disable_notification : bool;
  7. reply_to_message_id : int option;
  8. reply_markup : ReplyMarkup.reply_markup option;
}

Represents the outgoing audio message. Note that the audio field can either be an existing file id or the raw bytes from a file

val create : chat_id:int -> audio:string -> ?duration:int option -> performer:string -> title:string -> ?disable_notification:bool -> ?reply_to:int option -> ?reply_markup:ReplyMarkup.reply_markup option -> unit -> audio

Create an audio in a concise manner

Prepare an audio for sending -- used in the case of a file id

val prepare : audio -> string

Prepare an audio for sending -- used in the case of a file id

Prepare an audio for sending -- used in the case of the raw bytes

val prepare_multipart : audio -> string -> string Lwt.t

Prepare an audio for sending -- used in the case of the raw bytes