From 09c93347a2a3629d8293e7c24e081863414dd987 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 10 May 2023 00:37:33 +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 --- .../godfather/quarkus/domain/BoxAnswer.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java b/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java index 560b5d4..5ee15cf 100644 --- a/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java +++ b/bot-domain/bot-domain-quarkus/src/main/java/dev/struchkov/godfather/quarkus/domain/BoxAnswer.java @@ -41,6 +41,11 @@ public class BoxAnswer { */ private String replaceMessageId; + /** + * Идентификатор сообщения, на которое отвечаем. + */ + private String replyToMessageId; + /** * Клавиатура - меню. */ @@ -73,6 +78,7 @@ public class BoxAnswer { recipientPersonId = builder.recipientPersonId; payload = builder.payload; attachment = builder.attachment; + replyToMessageId = builder.replyToMessageId; } public static BoxAnswer boxAnswer(boolean replace, String message) { @@ -150,6 +156,7 @@ public class BoxAnswer { public static final class Builder { private String message; + private String replyToMessageId; private KeyBoard keyBoard; private boolean replace; private String replaceMessageId; @@ -165,6 +172,11 @@ public class BoxAnswer { return this; } + public Builder replyToMessageId(String val) { + replyToMessageId = val; + return this; + } + public Builder keyBoard(KeyBoard val) { keyBoard = val; return this; @@ -206,7 +218,6 @@ public class BoxAnswer { return this; } - public BoxAnswer build() { return new BoxAnswer(this); }