diff --git a/composer.json b/composer.json index 8f5d39f..740d85f 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,9 @@ "friendsofphp/php-cs-fixer": "^3.46", "pestphp/pest": "^2.8" }, + "suggest": { + "telegramsdk/botkit": "This package provides additional features for your IDE." + }, "config": { "allow-plugins": { "pestphp/pest-plugin": true diff --git a/src/Telegram/Bot.php b/src/Telegram/Bot.php index 255cb4b..d858b50 100644 --- a/src/Telegram/Bot.php +++ b/src/Telegram/Bot.php @@ -214,8 +214,8 @@ public function asPayload(bool $enablePayload = true): void */ public function __call($method, $arguments): mixed { - if (method_exists($this, $method)) { - return $this->$method(...$arguments); + if (method_exists(self::class, $method)) { + return self::$method(...$arguments); } if(!$this->payload) {