Module Api.Video

module Video: sig .. end

type video = {
   file_id : string;
   width : int;
   height : int;
   duration : int;
   thumb : Api.PhotoSize.photo_size option;
   mime_type : string option;
   file_size : int option;
}
Represents a video file sent in a message

Create a `video` in a concise manner

val create : file_id:string ->
width:int ->
height:int ->
duration:int ->
?thumb:Api.PhotoSize.photo_size option ->
?mime_type:string option -> ?file_size:int option -> unit -> video
Read a `video` out of some JSON
val read : Yojson.Safe.json -> video