Skip to content

Commit 217ef55

Browse files
committed
Fix OnUpdate Error
1 parent 533cb72 commit 217ef55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TelegramBot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function OnUpdate(\stdClass $update) : bool
9595
if ($this->Settings->LastUpdateDate > strtotime('-2 weeks'))
9696
{
9797
# Check if update is in the write order
98-
if ($this->Settings->LastUpdateID == $update->update_id - 1)
98+
if ($this->Settings->LastUpdateID == $update->update_id - 1 || $this->Settings->LastUpdateID == -1)
9999
{
100100
$this->Settings->LastUpdateID = $update->update_id;
101101
$this->Settings->LastUpdateDate = time();

0 commit comments

Comments
 (0)