Module TelegramApi.Document

module Document: sig .. end

type document = {
   file_id : string;
   thumb : TelegramApi.PhotoSize.photo_size option;
   file_name : string option;
   mime_type : string option;
   file_size : int option;
}
Represents a general file sent in a message
val create : file_id:string ->
?thumb:TelegramApi.PhotoSize.photo_size option ->
?file_name:string option ->
?mime_type:string option ->
?file_size:int option -> unit -> document
Create a document in a concise manner

Read a document out of some JSON

val read : Yojson.Safe.json -> document
module Out: sig .. end
This module is used to deal with outgoing documents