Привет
function sendVideoNote($chatId){
global $website;
$bot_url = $website.'/';
$url2 = $bot_url . "sendVideoNote";
$post_fields = array('chat_id' => $chatId, 'video_note' =>'AAMCBAADGQMAARnnbmDEy6q-2-_TnizJISOESE6pPqddAALRAgACb6gkUnLYVG5EGuIWkQHqMF0AAwEAB20AA79YAAIfBA');
$ch2 = curl_init();
curl_setopt($ch2, CURLOPT_HTTPHEADER, array( "Content-Type:multipart/form-data" ));
curl_setopt($ch2, CURLOPT_URL, $url2);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch2, CURLOPT_POSTFIELDS, $post_fields);
$output = curl_exec($ch2);
$output = json_decode($output, true);
print_r($output);
}
Ответ
ok":false,"error_code":400,"description":"Bad Request: type of file mismatch"
Пробывыал разные file id