diff --git a/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/RestApi.java b/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/RestApi.java index 807a0027..0c212056 100644 --- a/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/RestApi.java +++ b/telegrambots/src/main/java/org/telegram/telegrambots/updatesreceivers/RestApi.java @@ -109,7 +109,7 @@ public class RestApi { log.error("Malformed update", e.getCause());; return Response .status(Status.BAD_REQUEST) - .entity(e.getCause() == null ? "" : e.getCause().getMessage()) + .entity(e.getCause() == null ? "" : e.getCause().toString()) .type(MediaType.TEXT_PLAIN) .build(); }