Interface UpdateProcessor
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
LongPollingUpdateProcessor,WebhookUpdateProcessor
public sealed interface UpdateProcessor
extends Closeable
permits LongPollingUpdateProcessor, WebhookUpdateProcessor
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<UpdateReceivedEvent> handleNewUpdate(@NotNull TelegramBot bot, @NotNull Update update, @NotNull String responseJson) @NotNull CompletableFuture<User> start()
-
Field Details
-
processorEvents
-
-
Method Details
-
start
-
handleNewUpdate
@Internal default CompletableFuture<UpdateReceivedEvent> handleNewUpdate(@NotNull @NotNull TelegramBot bot, @NotNull @NotNull Update update, @NotNull @NotNull String responseJson)
-