Module TelegramApi.InputFile

module InputFile: sig .. end
Used for handling, loading, and sending outgoing files in messages

val load : string -> string Lwt.t
Loads a file (by filename) and returns the raw bytes inside of it

Used to format data as HTTP multipart/form-data Takes:


Returns The formatted string to use as the HTTP body (make sure to correctly format the headers for multipart/form-data)
val multipart_body : (string * string) list -> string * string * string -> string -> string Lwt.t