From 5263d61c20e48961ba28153fec0f2273c29be85c Mon Sep 17 00:00:00 2001 From: Zi Xing Date: Wed, 26 Jan 2022 16:05:49 -0500 Subject: [PATCH] Minor correction --- src/Telegram.php | 4 ++-- src/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Telegram.php b/src/Telegram.php index f3c8467..446a215 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -757,7 +757,7 @@ public function processUpdate(Update $update): ServerResponse $type = $message->getType(); // Let's check if the message object has the type field we're looking for... - $command_tmp = $type === 'command' ? $message->getCommand(self::getCommandPrefix()) : $this->getCommandFromType($type); + $command_tmp = $type === 'command' ? $message->getCommand($this->getCommandPrefix()) : $this->getCommandFromType($type); // ...and if a fitting command class is available. $command_obj = $command_tmp ? $this->getCommandObject($command_tmp) : null; @@ -1358,7 +1358,7 @@ public function runCommands(array $commands): array // Refresh commands list for new Update object. $this->commands_objects = $this->getCommandsList(); - $responses[] = $this->executeCommand($this->update->getMessage()->getCommand(self::getCommandPrefix())); + $responses[] = $this->executeCommand($this->update->getMessage()->getCommand($this->getCommandPrefix())); } // Reset Update to initial context. diff --git a/src/package.json b/src/package.json index 6184c5c..d059e83 100644 --- a/src/package.json +++ b/src/package.json @@ -671,4 +671,4 @@ "files": [ "package.json" ] -} +} \ No newline at end of file