1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 21:31:28 +01:00

Prepare release of beta200

This commit is contained in:
Daniil Gentili 2024-04-19 17:01:47 +02:00
parent 4bb21c0682
commit f537e23092
6 changed files with 12 additions and 11 deletions

View File

@ -199,13 +199,12 @@ Want to add your own open-source project to this list? [Click here!](https://doc
* [Bot API file IDs](https://docs.madelineproto.xyz/docs/FILES.html#bot-api-file-ids)
* [Uploading & sending files](https://docs.madelineproto.xyz/docs/FILES.html#sending-files)
* [Security notice](https://docs.madelineproto.xyz/docs/FILES.html#security-notice)
* [Photos](https://docs.madelineproto.xyz/docs/FILES.html#inputmediauploadedphoto)
* [Documents](https://docs.madelineproto.xyz/docs/FILES.html#inputmediauploadeddocument)
* [Documents](https://docs.madelineproto.xyz/docs/FILES.html#documentattributefilename-to-send-a-document)
* [Photos as documents](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeimagesize-to-send-a-photo-as-document)
* [GIFs](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeanimated-to-send-a-gif)
* [Videos](https://docs.madelineproto.xyz/docs/FILES.html#documentattributevideo-to-send-a-video)
* [Audio & Voice](https://docs.madelineproto.xyz/docs/FILES.html#documentattributeaudio-to-send-an-audio-file)
* [Photos](https://docs.madelineproto.xyz/docs/FILES.html#photos)
* [Documents](https://docs.madelineproto.xyz/docs/FILES.html#documents)
* [GIFs](https://docs.madelineproto.xyz/docs/FILES.html#gifs)
* [Videos](https://docs.madelineproto.xyz/docs/FILES.html#videos)
* [Music](https://docs.madelineproto.xyz/docs/FILES.html#music)
* [Voice](https://docs.madelineproto.xyz/docs/FILES.html#voice)
* [Uploading files](https://docs.madelineproto.xyz/docs/FILES.html#uploading-files)
* [Reusing uploaded files](https://docs.madelineproto.xyz/docs/FILES.html#reusing-uploaded-files)
* [Renaming files](https://docs.madelineproto.xyz/docs/FILES.html#renaming-files)

2
docs

@ -1 +1 @@
Subproject commit 741e0ceadb21214cd44991fce2dd2a5f16b2881d
Subproject commit 9e06f6553fa58ef7b10cf20af3c40632580e77b8

View File

@ -51,7 +51,7 @@ final class API extends AbstractAPI
*
* @var string
*/
public const RELEASE = '8.0.0-beta199';
public const RELEASE = '8.0.0-beta200';
/**
* We're not logged in.
*

View File

@ -35,6 +35,6 @@ abstract class AbstractAudio extends Media
bool $protected,
) {
parent::__construct($API, $rawMedia, $protected);
$this->duration = $audioAttribute['duration'];
$this->duration = $audioAttribute['duration'] ?? 0;
}
}

View File

@ -34,6 +34,6 @@ final class VideoSticker extends Sticker
bool $protected,
) {
parent::__construct($API, $rawMedia, $stickerAttribute, $extraAttribute['w'], $extraAttribute['h'], $protected);
$this->duration = $extraAttribute['duration'];
$this->duration = $extraAttribute['duration'] ?? 0.0;
}
}

View File

@ -824,6 +824,8 @@ trait FilesAbstraction
$thumb = stream_get_contents($stream);
fclose($stream);
unset($stream);
} else {
$attributes []= ['_' => 'documentAttributeImageSize', 'w' => $width, 'h' => $height];
}
} elseif ($type === Video::class || $type === Gif::class) {
$this->extractVideoInfo(true, $attributesOrig['thumbSeek'], $file, $fileName, $callback, $cancellation, $mimeType, $attributes, $thumb);