Skip to content

Commit 728f2f5

Browse files
uspilotTiiFuchs
authored andcommitted
Fixed issue with updates for user CustomCommnads
1 parent 8cff81a commit 728f2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Telegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ public function executeCommand(string $command): ServerResponse
682682
} else {
683683
//execute() method is executed after preExecute()
684684
//This is to prevent executing a DB query without a valid connection
685-
$this->last_command_response = $command_obj->preExecute();
685+
$this->last_command_response = $command_obj->setUpdate($this->update)->preExecute();
686686
}
687687

688688
return $this->last_command_response;

0 commit comments

Comments
 (0)