Video API component
Create a Video object for the API
The video file's link
Whether video is an id (true) or a link (false)
Optional
Describes the specified video media
import { Video } from "whatsapp-api-js/messages";const video_message = new Video("https://www.example.com/video.mp4");const video_id_message = new Video("12345678", true);const video_caption_message = new Video( "https://www.example.com/video.mp4", false, "Hello world!"); Copy
import { Video } from "whatsapp-api-js/messages";const video_message = new Video("https://www.example.com/video.mp4");const video_id_message = new Video("12345678", true);const video_caption_message = new Video( "https://www.example.com/video.mp4", false, "Hello world!");
Readonly
The file's caption
The id of the media
The link of the media
Video API component