From 69df5c22d8b420c8378d2e137bc3ab831c6a3742 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 5 Mar 2023 18:57:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=84=D0=BE=D1=80=D0=BC=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B2=D0=B8=D1=87=D0=BD=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=B8=D0=BD=D0=B8=D1=86=D0=B8=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bot/gitlab/telegram/unit/flow/InitSettingFlow.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/unit/flow/InitSettingFlow.java b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/unit/flow/InitSettingFlow.java index 80f2c38..c5f66c2 100644 --- a/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/unit/flow/InitSettingFlow.java +++ b/telegram-bot/src/main/java/dev/struchkov/bot/gitlab/telegram/unit/flow/InitSettingFlow.java @@ -521,11 +521,9 @@ public class InitSettingFlow implements UnitConfiguration { final ButtonClickAttachment buttonClick = Attachments.findFirstButtonClick(mail.getAttachments()).orElseThrow(); final DiscussionLevel level = DiscussionLevel.valueOf(buttonClick.getRawCallBackData().toUpperCase()); settingService.setDiscussionLevel(level); - replaceBoxAnswer("\uD83D\uDC4D you have successfully set the privacy level for threads"); + return replaceBoxAnswer("\uD83D\uDC4D you have successfully set the privacy level for threads"); }) - .callBack( - sentBox -> scheduledExecutorService.schedule(() -> sending.deleteMessage(sentBox.getPersonId(), sentBox.getMessageId()), 6, TimeUnit.SECONDS) - ) + .callBack(sentBox -> scheduledExecutorService.schedule(() -> sending.deleteMessage(sentBox.getPersonId(), sentBox.getMessageId()), 6, TimeUnit.SECONDS)) .next(endSetting) .build(); } @@ -541,8 +539,8 @@ public class InitSettingFlow implements UnitConfiguration { return BoxAnswer.builder() .message( """ - Configuration completed successfully - Developer: [Struchkov.Dev](https://mark.struchkov.dev) + 🎉 Configuration completed successfully + 🧑‍💻 Developer: [Struchkov.Dev](https://mark.struchkov.dev) """ ).keyBoard(inlineKeyBoard(simpleButton("Open Menu", "/start"))) .payload(DISABLE_WEB_PAGE_PREVIEW, true)