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);