From ba454eda244212efb6012ffd4c22bcc4f604c8e0 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 29 Oct 2019 21:00:00 +0100 Subject: [PATCH] Fix misteak --- src/danog/MadelineProto/TL/Types/Button.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/Types/Button.php b/src/danog/MadelineProto/TL/Types/Button.php index a38d0b46..fb58ba0d 100644 --- a/src/danog/MadelineProto/TL/Types/Button.php +++ b/src/danog/MadelineProto/TL/Types/Button.php @@ -45,7 +45,7 @@ class Button implements \JsonSerializable, \ArrayAccess $params = $donotwait; $donotwait = false; } - $async = $params['async']) ?? (isset($this->info['API']->wrapper) ? $this->info['API']->wrapper->async : true); + $async = $params['async'] ?? (isset($this->info['API']->wrapper) ? $this->info['API']->wrapper->async : true); $method = $donotwait ? 'method_call_async_write' : 'method_call_async_read'; switch ($this->data['_']) { default: