From 083f020a35511618421de52550cf981857992ba0 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Wed, 15 Nov 2017 18:39:27 +0100 Subject: [PATCH] Closes #335 --- .../api/methods/updatingmessages/DeleteMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java index dc0303b5..b34bf360 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/updatingmessages/DeleteMessage.java @@ -85,7 +85,7 @@ public class DeleteMessage extends BotApiMethod { if (result.getOk()) { return result.getResult(); } else { - throw new TelegramApiRequestException("Error editing message caption", result); + throw new TelegramApiRequestException("Error deleting message", result); } } catch (IOException e) { throw new TelegramApiRequestException("Unable to deserialize response", e);