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.
2 parents e7a5f0e + da97401 commit e95c8d6Copy full SHA for e95c8d6
src/BotManager.php
@@ -502,7 +502,8 @@ protected function defaultGetUpdatesCallback($get_updates_response): string
502
$text .= ";{$update_content->getQuery()}";
503
} elseif ($update_content instanceof CallbackQuery) {
504
/** @var CallbackQuery $update_content */
505
- $chat_id = $update_content->getMessage()->getChat()->getId();
+ $message = $update_content->getMessage();
506
+ $chat_id = ($message && $message->getChat()) ? $message->getChat()->getId() : null;
507
$text .= ";{$update_content->getData()}";
508
}
509
0 commit comments