From c0b1647627c2038e6d8cbaa02f853542478c60f4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 14 Dec 2019 17:59:34 +0100 Subject: [PATCH] Update TL.php --- src/danog/MadelineProto/TL/TL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 076b5446..b365103e 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -1070,7 +1070,7 @@ class TL if ($x['_'] === 'message' && isset($x['reply_markup']['rows'])) { foreach ($x['reply_markup']['rows'] as $key => $row) { foreach ($row['buttons'] as $bkey => $button) { - $x['reply_markup']['rows'][$key]['buttons'][$bkey] = new Types\Button($this, $x, $button); + $x['reply_markup']['rows'][$key]['buttons'][$bkey] = new Types\Button($this->API, $x, $button); } } }