All you need is:
-
Clone this repository
gh repo clone naruhin/spring-boot-telegram-bot-demo
-
Create your own bot with @BotFather
-
Now you have token and botname. Create file application.properties and put them into.
bot.username = youtBotName bot.token = yourBotToken
-
Package your application
mvn clean package
-
Run your .jar file.
java -jar telegram-bot-demo-0.0.1-SNAPSHOT.jar
Configurations! Your bot is running!:sunglasses: