package telegraml

  1. Overview
  2. Docs

This module deals with outgoing video messages

type video = {
  1. chat_id : int;
  2. video : string;
  3. duration : int option;
  4. caption : string option;
  5. disable_notification : bool;
  6. reply_to_message_id : int option;
  7. reply_markup : ReplyMarkup.reply_markup option;
}

Represents the outgoing video message. Note that the video field can either be an existing file id or the raw bytes from a file

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

Create a video in a concise manner

Prepare a video for sending -- used in the case of a file id

val prepare : video -> string

Prepare a video for sending -- used in the case of a file id

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

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

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