Fix nullable update handling in PollingBot

This commit is contained in:
netkas 2024-11-04 01:17:47 -05:00
parent ba6e991b23
commit e2bc3010af

View file

@ -234,7 +234,7 @@
foreach ($updates as $update)
{
// Check if the update contains a command
$command = $update->getAnyMessage()->getCommand();
$command = $update?->getAnyMessage()?->getCommand();
if ($command !== null)
{
$commandHandlers = $this->getEventHandlersByCommand($command);