From fa45c31a9b39143c04fbb8f4a31683e4f55fedc3 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 8 Jun 2017 15:52:06 +0200 Subject: [PATCH] Bugfix --- secret_bot.php | 2 +- src/danog/MadelineProto/MTProto.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/secret_bot.php b/secret_bot.php index 91a3d395..486205bd 100755 --- a/secret_bot.php +++ b/secret_bot.php @@ -92,7 +92,7 @@ while (true) { } break; case 'updateNewEncryptedMessage': - var_dump($MadelineProto->download_to_dir($update['update']['message'], '.')); + //var_dump($MadelineProto->download_to_dir($update['update']['message'], '.')); if (isset($sent[$update['update']['message']['chat_id']])) { continue; } diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 581d80d0..4f2d974c 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -285,7 +285,6 @@ class MTProto extends \Volatile } unset($this->data); } - $this->secret_chats = []; if ($this->authorized === true) { $this->authorized = self::LOGGED_IN; }