From 2ed65998b47e27ac7a156315e5ee74a9604e688a Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 27 Mar 2023 20:24:24 +0300 Subject: [PATCH] fix markdown --- .../dev/struchkov/example/bot/unit/PersonalChatGPTUnit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/struchkov/example/bot/unit/PersonalChatGPTUnit.java b/src/main/java/dev/struchkov/example/bot/unit/PersonalChatGPTUnit.java index 95eefa0..6d28f23 100644 --- a/src/main/java/dev/struchkov/example/bot/unit/PersonalChatGPTUnit.java +++ b/src/main/java/dev/struchkov/example/bot/unit/PersonalChatGPTUnit.java @@ -138,7 +138,7 @@ public class PersonalChatGPTUnit implements PersonUnitConfiguration { final SentBox sentBox = optSentBox.get(); telegramSending.replaceMessage(sentBox.getPersonId(), sentBox.getMessageId(), boxAnswer(format("\uD83D\uDC47 Answer received. Request cost: {0} tokens", answer.getUsage().getTotalTokens()))); } - return boxAnswer(answer.getMessage()); + return BoxAnswer.builder().payload(ENABLE_MARKDOWN).message(answer.getMessage()).build(); }) .priority(5) .build();