diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php b/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php index d9843fa9..67b3ff50 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php @@ -70,6 +70,7 @@ trait BotAPIFiles $photo['location']['id'] = isset($message_media['id']) ? $message_media['id'] : 0; $photo['location']['_'] = $thumbnail ? 'bot_thumbnail' : 'bot_photo'; $data = $this->serialize_object(['type' => 'File'], $photo['location']).chr(2); + return [ 'file_id' => $this->base64url_encode($this->rle_encode($data)), 'width' => $photo['w'],