From 30426db3df1b61cd09e8fb0649111f5585a70ec1 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 27 Jul 2019 15:51:54 +0200 Subject: [PATCH] Conversion bugfix (closes #662) --- src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php b/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php index 8c753cf5..aafcf33b 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php @@ -76,7 +76,7 @@ trait BotAPIFiles $photoSize['location']['access_hash'] = $photo['access_hash'] ?? 0; $photoSize['location']['id'] = $photo['id'] ?? 0; $photoSize['location']['secret'] = $photo['location']['secret'] ?? 0; - $photoSize['location']['dc_id'] = $photo['dc_id']; + $photoSize['location']['dc_id'] = $photo['dc_id'] ?? 0; $photoSize['location']['_'] = $thumbnail ? 'bot_thumbnail' : 'bot_photo'; $data = (yield $this->serialize_object_async(['type' => 'File'], $photoSize['location'], 'File')).chr(2);