package telegraml

  1. Overview
  2. Docs

This module is used to deal with outgoing voice messages

type voice = {
  1. chat_id : int;
  2. voice : string;
  3. duration : int option;
  4. disable_notification : bool;
  5. reply_to_message_id : int option;
  6. reply_markup : 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: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 a file id

Prepare a voice for sending -- used in the case of the raw bytes

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

Prepare a voice for sending -- used in the case of the raw bytes

OCaml

Innovation. Community. Security.