package telegraml

  1. Overview
  2. Docs

This module is used to deal with outgoing photo messages

type photo_size = {
  1. chat_id : int;
  2. photo : string;
  3. caption : string option;
  4. disable_notification : bool;
  5. reply_to_message_id : int option;
  6. reply_markup : ReplyMarkup.reply_markup 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

val create : chat_id:int -> photo:string -> ?caption:string option -> ?disable_notification:bool -> ?reply_to:int option -> ?reply_markup:ReplyMarkup.reply_markup option -> unit -> photo_size

Create a photo_size in a concise manner

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 a file id

Prepare a photo_size for sending -- used in the case of the raw bytes

val prepare_multipart : photo_size -> string -> string Lwt.t

Prepare a photo_size for sending -- used in the case of the raw bytes

OCaml

Innovation. Community. Security.