package telegraml

  1. Overview
  2. Docs

Module TelegramApi.FileSource

This module is used for downloadable files uploaded to the Telegram servers

Sourcetype file = {
  1. file_id : string;
  2. file_size : int option;
  3. file_path : string option;
}

Represents the information returned by getFile for the file_id

Sourceval create : file_id:string -> ?file_size:int option -> ?file_path:string option -> unit -> file

Create a file in a concise manner

Read a file out of some JSON

Read a file out of some JSON

Sourceval download : string -> file -> string Lwt.t option

Download the file from Telegram's servers if it exists

OCaml

Innovation. Community. Security.