Skip to content

Commit 200e4a2

Browse files
committed
Small fix
1 parent e43732d commit 200e4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Telegram/Commands/CallbackqueryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function execute(): ServerResponse
3131
}
3232

3333
// Check if we have data for that hash in the Cache
34-
if ($class = $this->payload()->get('__class')) {
34+
if ($class = $this->payload()?->get('__class')) {
3535
if (class_exists($class) && is_subclass_of($class, Command::class)) {
3636
/** @var Command $command */
3737
$command = new $class($this->telegram, $this->update);

0 commit comments

Comments
 (0)