Skip to content

Commit

Permalink
Merge pull request #6 from tarasfrompir/patch-1
Browse files Browse the repository at this point in the history
Update Telegram.php
  • Loading branch information
Anisan committed Jun 4, 2019
2 parents 9156499 + 0a5a245 commit a0a31bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/telegram/Telegram.php
Expand Up @@ -1753,7 +1753,11 @@ public function UpdateID()
/// Get the number of updates
public function UpdateCount()
{
return count($this->updates['result']);
if (!$this->updates['result']) {
return 0;
} else {
return count($this->updates['result']);
}
}

/// Get user's id of current message
Expand Down

0 comments on commit a0a31bc

Please sign in to comment.