Telegram bot implemented in Java, using Spring Boot and the Telegram Bot API.
- Obtain bot token through BotFather.
- Add your bot to a Telegram group.
- Obtain a NewsAPI key from NewsAPI. All configuration is done through environment variables or application.yaml.
Deploy using Docker and Maven, or directly through IntelliJ with specific environment
variables (BOT_USERNAME
, BOT_TOKEN
, BOT_WINNER_NAME
).
# inside the project folder
docker-compose -f docker/dev-compose.yaml up -d
mvn clean install
mvn spring-boot:run
- Add environment variables to run configuration:
BOT_USERNAME
BOT_TOKEN
BOT_WINNER_NAME
NEWS_API_KEY
(optional)
- User and game registration
- Daily winners
- Stats
- News and updates from NewsAPI
- Subreddit images
- Random facts.