Skip to content

forafox/spring-boot-starter-max

Repository files navigation

spring-boot-starter-max

Minimal Kotlin Spring Boot starter for the MAX messenger (long polling).

Based on the official swagger.json and https://dev.max.ru/docs.

Quick start

  1. Publish locally and add the dependency: ./gradlew publishToMavenLocal then implementation("ru.forafox:spring-boot-starter-max:0.1.0-SNAPSHOT").
  2. Set max.bot.access-token in application.yml.
  3. Add handlers or annotated methods for updates.
  4. Run the app — long polling starts automatically.

What’s inside

  • Long polling /updates. -, edit, delete via MaxSendClient.
  • Annotation routing by update type / commands / callback payload (@MaxUpdateRoute, @MaxCommandRoute, @MaxCallbackRoute).
  • Middleware pipeline for updates.
  • Typed MAX API models under ru.forafox.maxstarter.model.*.

Detailed guides

See ./docs/README.md for full Kotlin/Java guides, config, annotations, middleware, and sending messages.

License

See LICENSE.

About

Minimal Kotlin Spring Boot starter for the MAX messenger Bot API, with long-polling, send client, middleware pipeline, annotation-based routing, and complete generated MAX models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages