Skip to content

sendVideo

Sahri Riza Umami edited this page Mar 13, 2017 · 3 revisions

Send a video message.

sendVideo(chat_id, reply_to_message_id, disable_notification, from_background, reply_markup, video, duration, width, height, caption)  
Option Description
chat_id Chat to send message.
reply_to_message_id Identifier of a message to reply to or 0.
disable_notification Pass true, to disable notification about the message.
from_background Pass true, if the message is sent from background.
reply_markup Bots only. Markup for replying to message.
video Video to send.
thumb Video thumb, if available.
duration Duration of video in seconds.
width Video width.
height Video height.
caption Video caption, 0-200 characters.

Example

  • Send video message from a message with id 212.

    sendVideo(1234567890, 0, 0, 1, nil, 212, nil, nil, nil, 'Video anu')
  • Send audio message from a local file.

    sendVideo(1234567890, 0, 0, 1, nil, '/tmp/video.mp4')
  • Send audio message by its persistent_id.

    sendVideo(1234567890, 0, 0, 1, nil, 'AwADBQADAgAD89svB5Wbwx4qKGi9A')

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally