From 7c11293d0784ce61d9c373cdea0cefc79b6eedb4 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Sat, 15 Jun 2019 18:10:27 +0100 Subject: [PATCH] Fix #628 --- .../main/java/org/telegram/telegrambots/util/WebhookUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambots/src/main/java/org/telegram/telegrambots/util/WebhookUtils.java b/telegrambots/src/main/java/org/telegram/telegrambots/util/WebhookUtils.java index 7db6f898..a294738d 100644 --- a/telegrambots/src/main/java/org/telegram/telegrambots/util/WebhookUtils.java +++ b/telegrambots/src/main/java/org/telegram/telegrambots/util/WebhookUtils.java @@ -43,7 +43,7 @@ public final class WebhookUtils { builder.addTextBody(SetWebhook.MAXCONNECTIONS_FIELD, botOptions.getMaxWebhookConnections().toString()); } if (botOptions.getAllowedUpdates() != null) { - builder.addTextBody(SetWebhook.ALLOWEDUPDATES_FIELD, new JSONArray(botOptions.getMaxWebhookConnections()).toString()); + builder.addTextBody(SetWebhook.ALLOWEDUPDATES_FIELD, new JSONArray(botOptions.getAllowedUpdates()).toString()); } if (publicCertificatePath != null) { File certificate = new File(publicCertificatePath);