package telegraml

  1. Overview
  2. Docs
type voice = {
  1. file_id : string;
  2. duration : int;
  3. mime_type : string option;
  4. file_size : int option;
}

Represents a voice message (ogg)

val create : file_id:string -> duration:int -> ?mime_type:string option -> ?file_size:int option -> unit -> voice

Create a voice in a concise manner

Read a voice out of some JSON

val read : Yojson.Safe.json -> voice

Read a voice out of some JSON

module Out : sig ... end

This module is used to deal with outgoing voice messages