Поправил оформление первичной инициализации
This commit is contained in:
parent
e6b77e0164
commit
69df5c22d8
@ -521,11 +521,9 @@ public class InitSettingFlow implements UnitConfiguration {
|
|||||||
final ButtonClickAttachment buttonClick = Attachments.findFirstButtonClick(mail.getAttachments()).orElseThrow();
|
final ButtonClickAttachment buttonClick = Attachments.findFirstButtonClick(mail.getAttachments()).orElseThrow();
|
||||||
final DiscussionLevel level = DiscussionLevel.valueOf(buttonClick.getRawCallBackData().toUpperCase());
|
final DiscussionLevel level = DiscussionLevel.valueOf(buttonClick.getRawCallBackData().toUpperCase());
|
||||||
settingService.setDiscussionLevel(level);
|
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(
|
.callBack(sentBox -> scheduledExecutorService.schedule(() -> sending.deleteMessage(sentBox.getPersonId(), sentBox.getMessageId()), 6, TimeUnit.SECONDS))
|
||||||
sentBox -> scheduledExecutorService.schedule(() -> sending.deleteMessage(sentBox.getPersonId(), sentBox.getMessageId()), 6, TimeUnit.SECONDS)
|
|
||||||
)
|
|
||||||
.next(endSetting)
|
.next(endSetting)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
@ -541,8 +539,8 @@ public class InitSettingFlow implements UnitConfiguration {
|
|||||||
return BoxAnswer.builder()
|
return BoxAnswer.builder()
|
||||||
.message(
|
.message(
|
||||||
"""
|
"""
|
||||||
Configuration completed successfully
|
🎉 Configuration completed successfully
|
||||||
Developer: [Struchkov.Dev](https://mark.struchkov.dev)
|
🧑💻 Developer: [Struchkov.Dev](https://mark.struchkov.dev)
|
||||||
"""
|
"""
|
||||||
).keyBoard(inlineKeyBoard(simpleButton("Open Menu", "/start")))
|
).keyBoard(inlineKeyBoard(simpleButton("Open Menu", "/start")))
|
||||||
.payload(DISABLE_WEB_PAGE_PREVIEW, true)
|
.payload(DISABLE_WEB_PAGE_PREVIEW, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user