File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
13
13
### Deprecated
14
14
### Removed
15
15
### Fixed
16
+ - ` getUpdates ` method wrongly sends only 1 Update when a limit of 0 is passed.
16
17
### Security
17
18
18
19
## [ 0.70.1] - 2020-12-25
Original file line number Diff line number Diff line change @@ -391,13 +391,13 @@ public function getLastCommandResponse(): ServerResponse
391
391
/**
392
392
* Handle getUpdates method
393
393
*
394
- * @param int $limit
395
- * @param int $timeout
394
+ * @param int|null $limit
395
+ * @param int|null $timeout
396
396
*
397
397
* @return ServerResponse
398
398
* @throws TelegramException
399
399
*/
400
- public function handleGetUpdates (int $ limit = 0 , int $ timeout = 0 ): ServerResponse
400
+ public function handleGetUpdates (? int $ limit = null , ? int $ timeout = null ): ServerResponse
401
401
{
402
402
if (empty ($ this ->bot_username )) {
403
403
throw new TelegramException ('Bot Username is not defined! ' );
You can’t perform that action at this time.
0 commit comments