We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 533cb72 commit 217ef55Copy full SHA for 217ef55
src/TelegramBot.php
@@ -95,7 +95,7 @@ protected function OnUpdate(\stdClass $update) : bool
95
if ($this->Settings->LastUpdateDate > strtotime('-2 weeks'))
96
{
97
# Check if update is in the write order
98
- if ($this->Settings->LastUpdateID == $update->update_id - 1)
+ if ($this->Settings->LastUpdateID == $update->update_id - 1 || $this->Settings->LastUpdateID == -1)
99
100
$this->Settings->LastUpdateID = $update->update_id;
101
$this->Settings->LastUpdateDate = time();
0 commit comments