Minimal Kotlin Spring Boot starter for the MAX messenger (long polling).
Based on the official
swagger.jsonand https://dev.max.ru/docs.
- Publish locally and add the dependency:
./gradlew publishToMavenLocalthenimplementation("ru.forafox:spring-boot-starter-max:0.1.0-SNAPSHOT"). - Set
max.bot.access-tokeninapplication.yml. - Add handlers or annotated methods for updates.
- Run the app — long polling starts automatically.
- Long polling
/updates. -, edit, delete viaMaxSendClient. - Annotation routing by update type / commands / callback payload (
@MaxUpdateRoute,@MaxCommandRoute,@MaxCallbackRoute). - Middleware pipeline for updates.
- Typed MAX API models under
ru.forafox.maxstarter.model.*.
See ./docs/README.md for full Kotlin/Java guides, config, annotations, middleware, and sending messages.
See LICENSE.