sig
type document = {
file_id : string;
thumb : TelegramApi.PhotoSize.photo_size option;
file_name : string option;
mime_type : string option;
file_size : int option;
}
val create :
file_id:string ->
?thumb:TelegramApi.PhotoSize.photo_size option ->
?file_name:string option ->
?mime_type:string option ->
?file_size:int option -> unit -> TelegramApi.Document.document
val read : Yojson.Safe.json -> TelegramApi.Document.document
module Out :
sig
type document = {
chat_id : int;
document : string;
disable_notification : bool;
reply_to_message_id : int option;
reply_markup : TelegramApi.ReplyMarkup.reply_markup option;
}
val create :
chat_id:int ->
document:string ->
?disable_notification:bool ->
?reply_to:int option ->
?reply_markup:TelegramApi.ReplyMarkup.reply_markup option ->
unit -> TelegramApi.Document.Out.document
val prepare : TelegramApi.Document.Out.document -> string
val prepare_multipart :
TelegramApi.Document.Out.document -> string -> string Lwt.t
end
end