Skip to content

Commit

Permalink
API: Revise offset computation for getUpdates method
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Oct 9, 2020
1 parent 3c4bdde commit 89c79a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ processUpdatesLimitedTo: maxUpdates chunkSize: chunkSize do: aBlock timeout: tim
latestUpdateTime := DateAndTime now.
^ self].
updates do: aBlock.
latestUpdateId := updates last updateId]
latestUpdateId := (updates collect: #updateId) max]
doWhileTrue: [(updateCount := updateCount + updates size) < maxUpdates].
^ self error: 'Incoming update count exceeded limit'
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"editMessage:changeTo:" : "ct 10/9/2020 16:42",
"editMessage:fromMediaMessage:" : "ct 9/29/2020 18:04",
"editMessage:text:" : "ct 9/29/2020 16:04",
"getUpdates" : "ct 8/30/2020 15:54",
"handleChannelPost:" : "ct 10/3/2020 13:30",
"handleCommand:message:" : "ct 10/3/2020 14:09",
"handleEditedChannelPost:" : "ct 10/3/2020 13:30",
Expand Down Expand Up @@ -50,7 +49,7 @@
"printOn:" : "ct 10/1/2020 21:34",
"process" : "ct 10/3/2020 16:00",
"processUpdatesLimitedTo:chunkSize:do:" : "ct 8/30/2020 21:59",
"processUpdatesLimitedTo:chunkSize:do:timeout:" : "ct 10/3/2020 12:41",
"processUpdatesLimitedTo:chunkSize:do:timeout:" : "ct 10/9/2020 17:21",
"processUpdatesLimitedTo:chunkSize:timeout:" : "ct 8/30/2020 21:21",
"processUpdatesWithin:" : "ct 8/30/2020 21:22",
"request:" : "ct 8/30/2020 15:10",
Expand Down

0 comments on commit 89c79a0

Please sign in to comment.