I have developed a Telegram bot and I wanted it to run in Tomcat environment. I converted my java program into Spring boot project as this.
My conversion is basically adding spring boot dependency to pom,and make main class as spring boot runner. In eclipse environment, my application runs as expected. When I package it into war and deploy it into tomcat, the business logic does not run. Spring boot starts, I can see the logs of it. However telegram bot does not initialized.
I also added a dummy RestController which return "hello". When I run localhost:8080/endpoint I can see "hello". However, Telegram bot is not active.
In some resources, they say telegrambots-spring-boot-starter should be in the project. My telegram dependency contains it. It is not the case. I do not get any error log in catalina.out. Application just starts and stays as it is. I dont understand why.
Any help is appreciated.