- maven
- java 17
- Spring boot
- telegram bot library for java(https://github.com/rubenlagus/TelegramBots)
- Create bot via BotFather (
t.me/BotFather
) - Specify
token
andusername
inapplication.yml
- Run
Application.main()
- Bot will be automatically registered, because it contains
telegrambots-spring-boot-starter
- Now navigate to your bot and try to send some text to the bot
If you observe issues during application start like error removing old web-hook
, then make sure only one instance of bot is running,
also check if you have provided good token.