Skip to content

Commit

Permalink
Minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Netkas committed Jan 26, 2022
1 parent 9a3351a commit 5263d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Telegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@
"files": [
"package.json"
]
}
}

0 comments on commit 5263d61

Please sign in to comment.