Skip to content

Commit

Permalink
fix #43
Browse files Browse the repository at this point in the history
Why this happens I don't know. But won't throw an error atleast
  • Loading branch information
remdex committed Apr 5, 2023
1 parent 3db0725 commit 30d6efb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Commands/GenericCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public function execute()
{
$message = $this->getMessage();

if ($message === null) {
return ;
}

//You can use $command as param
$chat_id = $message->getChat()->getId();
$user_id = $message->getFrom()->getId();
Expand Down

0 comments on commit 30d6efb

Please sign in to comment.