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 4b363c5..d0ab002 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 @@ -6,6 +6,7 @@ import dev.struchkov.godfather.main.domain.jackson.TelegramPayloadDeserializer; import dev.struchkov.godfather.main.domain.jackson.TelegramPayloadSerializer; import dev.struchkov.godfather.main.domain.keyboard.KeyBoard; import dev.struchkov.haiti.utils.container.ContextKey; +import io.smallrye.mutiny.Uni; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @@ -136,6 +137,10 @@ public class BoxAnswer { return Optional.empty(); } + public Uni toUni() { + return Uni.createFrom().item(this); + } + public static final class Builder { private String message;