Skip to content

Commit

Permalink
Update default values for GetUpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Apr 13, 2024
1 parent 7c2258d commit 1977b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
@AllArgsConstructor
@NoArgsConstructor
public class DefaultGetUpdatesGenerator implements Function<Integer, GetUpdates> {
private static final int GET_UPDATES_LIMIT = 1;
private static final int GET_UPDATES_TIMEOUT = 1;
private static final int GET_UPDATES_LIMIT = 100;
private static final int GET_UPDATES_TIMEOUT = 50;

private List<String> allowedUpdates = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ public class GetUpdates extends BotApiMethod<ArrayList<Update>>{
* For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types.
* See Update for a complete list of available update types. Specify an empty list to receive all update types except
* chat_member, message_reaction, and message_reaction_count (default).
*
* If not specified, the previous setting will be used.
*
* Please note that this parameter doesn't affect updates created before the call to the getUpdates,
* so unwanted updates may be received for a short period of time.
*/
Expand Down

0 comments on commit 1977b5c

Please sign in to comment.