Skip to content

Commit

Permalink
Merge pull request #34 from tanhongit/develop
Browse files Browse the repository at this point in the history
 (#77) fix: access array offset on value of type null
  • Loading branch information
tanhongit authored Aug 12, 2023
2 parents bc94446 + 948cad7 commit 1492ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/TelegramService.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function sendCallbackResponse(string $callback = null): void
*/
public function checkCallback(): bool
{
if (!is_null($this->telegram->Callback_ChatID())) {
if (!is_null($this->telegram->getData()) && !is_null($this->telegram->Callback_ChatID())) {
$this->sendCallbackResponse($this->telegram->Callback_Data());
return true;
}
Expand Down

0 comments on commit 1492ae1

Please sign in to comment.