From 6936e252f443ccb50245aa689f8ee8f976372582 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 10 May 2023 00:39:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BE=D1=82=D0=B2=D0=B5=D1=87=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../godfather/telegram/quarkus/sender/TelegramSender.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 560ea74..d8ccb55 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,7 @@ UTF-8 UTF-8 - 0.0.64 + 0.0.65 6.5.0 diff --git a/telegram-sender/telegram-sender-quarkus/src/main/java/dev/struchkov/godfather/telegram/quarkus/sender/TelegramSender.java b/telegram-sender/telegram-sender-quarkus/src/main/java/dev/struchkov/godfather/telegram/quarkus/sender/TelegramSender.java index dba589b..d4b1ee7 100644 --- a/telegram-sender/telegram-sender-quarkus/src/main/java/dev/struchkov/godfather/telegram/quarkus/sender/TelegramSender.java +++ b/telegram-sender/telegram-sender-quarkus/src/main/java/dev/struchkov/godfather/telegram/quarkus/sender/TelegramSender.java @@ -332,6 +332,10 @@ public class TelegramSender implements TelegramSending { final SendMessage sendMessage = new SendMessage(); sendMessage.setChatId(boxAnswer.getRecipientPersonId()); sendMessage.setText(subMessage); + + if (checkNotBlank(boxAnswer.getReplyToMessageId())) { + sendMessage.setReplyToMessageId(Integer.parseInt(boxAnswer.getReplyToMessageId())); + } if (lastMessage) { sendMessage.setReplyMarkup(convertKeyBoard(boxAnswer.getKeyBoard())); }