Fix nullable update handling in PollingBot
This commit is contained in:
parent
ba6e991b23
commit
e2bc3010af
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@
|
||||||
foreach ($updates as $update)
|
foreach ($updates as $update)
|
||||||
{
|
{
|
||||||
// Check if the update contains a command
|
// Check if the update contains a command
|
||||||
$command = $update->getAnyMessage()->getCommand();
|
$command = $update?->getAnyMessage()?->getCommand();
|
||||||
if ($command !== null)
|
if ($command !== null)
|
||||||
{
|
{
|
||||||
$commandHandlers = $this->getEventHandlersByCommand($command);
|
$commandHandlers = $this->getEventHandlersByCommand($command);
|
||||||
|
|
Loading…
Add table
Reference in a new issue