Исправление handleUpdate

This commit is contained in:
Struchkov Mark 2024-12-02 13:58:27 +03:00
parent f5368aecaf
commit 57063b30ee
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -57,7 +57,7 @@ public class TelegramPollingBot extends TelegramLongPollingBot implements Telegr
if (update != null && eventDistributor != null) {
Uni.createFrom().voidItem()
.emitOn(command -> Context.newInstance(getOrCreateDuplicatedContext(vertx)).runOnContext(command))
.replaceWith(() -> eventDistributor.processing(update))
.replaceWith(eventDistributor.processing(update))
.subscribe().asCompletionStage();
}
}