This is a important feature but it’s not available 🥲
I tried documentAttributeVideo but it’s not working too 🫠
case 'messageMediaVideo':
// For videos, create an InputSingleMedia object
$input_singlemedia = [
'' => 'inputSingleMedia',
'media' => [
'_' => 'inputMediaUploadedDocument',
'file' => $other_message['media']['video']['filereference'], // The video file reference to upload
'attributes' => [
'' => 'documentAttributeVideo',
'duration' => $other_message['media']['video']['duration'], // Duration of the video
'w' => $other_message['media']['video']['w'], // Width of the video
'h' => $other_message['media']['video']['h'] // Height of the video
],
'caption' => isset($other_message['media']['caption']) ? $other_message['media']['caption'] : '', // The caption or an empty string
],
];
This is a important feature but it’s not available 🥲
I tried documentAttributeVideo but it’s not working too 🫠
case 'messageMediaVideo': // For videos, create an InputSingleMedia object $input_singlemedia = [ '' => 'inputSingleMedia', 'media' => [ '_' => 'inputMediaUploadedDocument', 'file' => $other_message['media']['video']['filereference'], // The video file reference to upload 'attributes' => [ '' => 'documentAttributeVideo', 'duration' => $other_message['media']['video']['duration'], // Duration of the video 'w' => $other_message['media']['video']['w'], // Width of the video 'h' => $other_message['media']['video']['h'] // Height of the video ], 'caption' => isset($other_message['media']['caption']) ? $other_message['media']['caption'] : '', // The caption or an empty string ], ];