diff --git a/src/Telegram/InputMediaAnimation.php b/src/Telegram/InputMediaAnimation.php index 5afcd83..5fc4cbc 100644 --- a/src/Telegram/InputMediaAnimation.php +++ b/src/Telegram/InputMediaAnimation.php @@ -6,15 +6,13 @@ namespace Tii\Telepath\Telegram; -use Tii\Telepath\InputFile; - /** * Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent. */ class InputMediaAnimation extends InputMedia { /** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public InputFile|string|null $thumb = null; + public \Tii\Telepath\InputFile|string|null $thumb = null; /** Optional. Animation width */ public ?int $width = null; @@ -27,13 +25,13 @@ class InputMediaAnimation extends InputMedia /** - * @param InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param int $width Optional. Animation width * @param int $height Optional. Animation height * @param int $duration Optional. Animation duration in seconds */ public static function make( - InputFile|string|null $thumb = null, + \Tii\Telepath\InputFile|string|null $thumb = null, ?int $width = null, ?int $height = null, ?int $duration = null diff --git a/src/Telegram/InputMediaAudio.php b/src/Telegram/InputMediaAudio.php index c7f5a0f..7ca524b 100644 --- a/src/Telegram/InputMediaAudio.php +++ b/src/Telegram/InputMediaAudio.php @@ -6,15 +6,13 @@ namespace Tii\Telepath\Telegram; -use Tii\Telepath\InputFile; - /** * Represents an audio file to be treated as music to be sent. */ class InputMediaAudio extends InputMedia { /** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public InputFile|string|null $thumb = null; + public \Tii\Telepath\InputFile|string|null $thumb = null; /** Optional. Duration of the audio in seconds */ public ?int $duration = null; @@ -27,13 +25,13 @@ class InputMediaAudio extends InputMedia /** - * @param InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param int $duration Optional. Duration of the audio in seconds * @param string $performer Optional. Performer of the audio * @param string $title Optional. Title of the audio */ public static function make( - InputFile|string|null $thumb = null, + \Tii\Telepath\InputFile|string|null $thumb = null, ?int $duration = null, ?string $performer = null, ?string $title = null diff --git a/src/Telegram/InputMediaDocument.php b/src/Telegram/InputMediaDocument.php index 425546b..3b7b222 100644 --- a/src/Telegram/InputMediaDocument.php +++ b/src/Telegram/InputMediaDocument.php @@ -6,26 +6,26 @@ namespace Tii\Telepath\Telegram; -use Tii\Telepath\InputFile; - /** * Represents a general file to be sent. */ class InputMediaDocument extends InputMedia { /** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public InputFile|string|null $thumb = null; + public \Tii\Telepath\InputFile|string|null $thumb = null; /** Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album. */ public ?bool $disable_content_type_detection = null; /** - * @param InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param bool $disable_content_type_detection Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album. */ - public static function make(InputFile|string|null $thumb = null, ?bool $disable_content_type_detection = null): static - { + public static function make( + \Tii\Telepath\InputFile|string|null $thumb = null, + ?bool $disable_content_type_detection = null + ): static { return new static([ 'thumb' => $thumb, 'disable_content_type_detection' => $disable_content_type_detection, diff --git a/src/Telegram/InputMediaVideo.php b/src/Telegram/InputMediaVideo.php index 3c4c8e8..90876f9 100644 --- a/src/Telegram/InputMediaVideo.php +++ b/src/Telegram/InputMediaVideo.php @@ -6,15 +6,13 @@ namespace Tii\Telepath\Telegram; -use Tii\Telepath\InputFile; - /** * Represents a video to be sent. */ class InputMediaVideo extends InputMedia { /** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public InputFile|string|null $thumb = null; + public \Tii\Telepath\InputFile|string|null $thumb = null; /** Optional. Video width */ public ?int $width = null; @@ -30,14 +28,14 @@ class InputMediaVideo extends InputMedia /** - * @param InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\InputFile|string $thumb Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param int $width Optional. Video width * @param int $height Optional. Video height * @param int $duration Optional. Video duration in seconds * @param bool $supports_streaming Optional. Pass True, if the uploaded video is suitable for streaming */ public static function make( - InputFile|string|null $thumb = null, + \Tii\Telepath\InputFile|string|null $thumb = null, ?int $width = null, ?int $height = null, ?int $duration = null, diff --git a/telepathy b/telepathy index fc4e87f..0dad408 100755 Binary files a/telepathy and b/telepathy differ