mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:18:59 +01:00
File download bugfix
This commit is contained in:
parent
495294eb12
commit
4bbd6c0b59
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 4462f6f0c4391a3a1c6ce4f2b5cb02081a635a88
|
||||
Subproject commit 329a5e2f7bb99186c4b8f3c8693269774deed9c5
|
@ -307,7 +307,7 @@ trait Files
|
||||
|
||||
public function download_to_dir($message_media, $dir, $cb = null)
|
||||
{
|
||||
if (is_object($dir) && class_implements($dir)['\danog\MadelineProto\FileCallbackInterface']) {
|
||||
if (is_object($dir) && class_implements($dir)['danog\MadelineProto\FileCallbackInterface']) {
|
||||
$cb = $dir;
|
||||
$dir = $dir->getFile();
|
||||
}
|
||||
@ -319,7 +319,7 @@ trait Files
|
||||
|
||||
public function download_to_file($message_media, $file, $cb = null)
|
||||
{
|
||||
if (is_object($file) && class_implements($file)['\danog\MadelineProto\FileCallbackInterface']) {
|
||||
if (is_object($file) && class_implements($file)['danog\MadelineProto\FileCallbackInterface']) {
|
||||
$cb = $file;
|
||||
$file = $file->getFile();
|
||||
}
|
||||
@ -346,7 +346,7 @@ trait Files
|
||||
|
||||
public function download_to_stream($message_media, $stream, $cb = null, $offset = 0, $end = -1)
|
||||
{
|
||||
if (is_object($stream) && class_implements($stream)['\danog\MadelineProto\FileCallbackInterface']) {
|
||||
if (is_object($stream) && class_implements($stream)['danog\MadelineProto\FileCallbackInterface']) {
|
||||
$cb = $stream;
|
||||
$stream = $stream->getFile();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user