Closed Jallvar closed 4 years ago
For a video note:
$videonote= curl_file_create('filename.mp4','video/mp4'); // Must be on the same hosting filesystem
$content = array('chat_id' => $chat_id, 'video_note' => $videonote, 'length'=> '639'); //There was a stange bug with the lenght
$telegram->sendVideoNote($content);
For a video
$video= curl_file_create('filename.mp4','video/mp4'); // Must be on the same hosting filesystem
$content = array('chat_id' => $chat_id, 'video' => $video, 'length'=> '639'); //There was a stange bug with the lenght
$telegram->sendVideo($content);
or just you can pass a valid mp4 video url
$video= 'https://static.cdn.asset.aparat.com/avt/12161828_15s.mp4';
$content = array('chat_id' => $chat_id, 'video' => $video, 'caption' => 'TEST');
$telegram->sendVideo($content);
Hello, how can i send video. with this library?