Skip to content
Filippo Romani edited this page Sep 13, 2024 · 2 revisions

To send a video, you can either specify a link containing the video or specify object id, you can do this using the same method. To get the object id, you can use the upload_media method. and then use the returned object id to send the video.

>>> messenger.send_video(
        video="https://www.youtube.com/watch?v=K4TOrB7at0Y",
        recipient_id="255757xxxxxx",
        sender=0,
    )
Clone this wiki locally