This project uses under the hood a popular java abstraction library for accessing Telegram Bot API - org.telegram.telegrambots
- JDK/JRE 1.8
- maven for dependency management and building stuff
- In your active Telegram account find a special bot @BotFather
- Then send command
/newbot
- Give a unique name to your new bot
- Copy the telegram token to access the HTTP API
- In your terminal/cmd run
mvn package
- In your terminal/cmd run
java -jar -Dtelegram.secret.key=MySecretKeyFromStep4 target/simpleBot-1.0-SNAPSHOT-jar-with-dependencies.jar
- Open your Telegram app (mobile/Desktop)
- Find your bot (which you have created in step 2 see previous section)
- Start to send your guess to the chat and enjoy