This is a simple Telegram bot written using Spring Boot. It receives messages from the user and uses OpenAI ChatGPT's api to generate responses.
- Create a bot on BotFather, take note of your bot name and token.
- Create a free account on OpenAI, take note of your API key.
- Configure your bot name, token and openAI api key in application.yml to be able to use this bot.
- Start it as a normal Spring Boot application, or use provided Dockerfile to run inside a Docker container.