Module Api.Document

module Document: sig .. end

type document = {
   file_id : string;
   thumb : Api.PhotoSize.photo_size option;
   file_name : string option;
   mime_type : string option;
   file_size : int option;
}
Represents a general file sent in a message

Create a `document` in a concise manner

val create : file_id:string ->
?thumb:Api.PhotoSize.photo_size option ->
?file_name:string option ->
?mime_type:string option ->
?file_size:int option -> unit -> document
Read a `document` out of some JSON
val read : Yojson.Safe.json -> document