package telegraml

  1. Overview
  2. Docs

Module TelegramApi.VoiceSource

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

Represents a voice message (ogg)

Sourceval 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

Read a voice out of some JSON

Sourcemodule Out : sig ... end

This module is used to deal with outgoing voice messages