danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.74k stars 617 forks source link

inputMediaUploadedVideo is not available for sendMultiMedia #1495

Closed viveknoteme closed 2 months ago

viveknoteme commented 4 months ago

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 ], ];

danog commented 2 months ago

All fixed now I believe