Reactive Java framework for building chat bots without runtime magic.
BotDispatcherProvider> dp = PipelineDispatcherProviderBuilder.builder()
.methodHandlerFlow(TelegramMinimal::handler)
.shutdownMaxWait(Duration.ofSeconds(10))
.build();
BotFlux bf = BotFluxBootstrap.go()
.autoInfrastructure()
.dispatcherProvider(dp)
.gateway(telegram()
.gatewayId("telegram-example")
.token(TELEGRAM_TOKEN)
.intent())
.commit()
.create();
bf.start();
<dependencies>
<dependency>
<groupId>cc.botflux</groupId>
<artifactId>botflux-bootstrap</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>