whatsapp-api-js - v5.2.0
    Preparing search index...

    Class Video

    Video API component

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Create a Video object for the API

      Parameters

      • video: string

        The video file's link

      • isItAnID: boolean = false

        Whether video is an id (true) or a link (false)

      • Optionalcaption: string

        Describes the specified video media

      Returns Video

      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!"
      );

    Properties

    caption?: string

    The file's caption

    id?: string

    The id of the media

    link?: string

    The link of the media