Skip to main content

$reactions.video

This method sends a video recording as a bot reply.

It takes a string or an object with the following fields as an argument:

  • value — link to the video file.
  • name — video file name. An optional field.
caution
Each channel has its own restrictions on video files that can be uploaded, for example, on the playback duration or size. Make sure your file complies with all the channel requirements.

How to use

  • Passing a string to the method:
$reactions.video('https://example.com/video.mp4');
  • Passing an object to the method:
$reactions.video({name: 'Video file name', value: 'https://example.com/video.mp4'});