We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e43732d commit 200e4a2Copy full SHA for 200e4a2
src/Telegram/Commands/CallbackqueryCommand.php
@@ -31,7 +31,7 @@ public function execute(): ServerResponse
31
}
32
33
// Check if we have data for that hash in the Cache
34
- if ($class = $this->payload()->get('__class')) {
+ if ($class = $this->payload()?->get('__class')) {
35
if (class_exists($class) && is_subclass_of($class, Command::class)) {
36
/** @var Command $command */
37
$command = new $class($this->telegram, $this->update);
0 commit comments