From f7b3710c38a59f76d38d7a376d708de9bb91f958 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 23 Feb 2017 00:51:50 +0100 Subject: [PATCH] Yet Another Bugfix --- src/danog/MadelineProto/TL/TL.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index e3a1ac57..ed804483 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -558,9 +558,9 @@ trait TL public function botAPI_to_MTProto($arguments) { foreach ($this->botapi_params as $bot => $mtproto) { - if (isset($arguments[$bot])) { + if (isset($arguments[$bot]) && !isset($arguments[$mtproto])) { $arguments[$mtproto] = $arguments[$bot]; - unset($arguments[$bot]); + //unset($arguments[$bot]); } } if (isset($arguments['reply_markup'])) {