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