Module Api.PhotoSize.Out

module Out: sig .. end
This module is used to deal with outgoing photo messages

type photo_size = {
   chat_id : int;
   photo : string;
   caption : string option;
   reply_to_message_id : int option;
   reply_markup : unit option;
}
Represents the outgoing photo message. Note that the `photo` field can either be an existing file id or the raw bytes from a file

Create a `photo_size` in a concise manner

val create : chat_id:int ->
photo:string ->
?caption:string option ->
?reply_to:int option -> unit -> photo_size
Prepare a `photo_size` for sending -- used in the case of a file id
val prepare : photo_size -> string
Prepare a `photo_size` for sending -- used in the case of the raw bytes
val prepare_multipart : photo_size -> string -> string Lwt.t