The only purpose of this bot is to reply "ping" to the received message
./gradlew clean build
java -jar build/libs/telegram-spring-boot-example-0.1.jar \
--spring.config.location=classpath:credentials.yaml \
--spring.config.location=classpath:proxy.yaml
- Credentials (example):
telegram: bot: credentials: token: "<put your bot's token here>" bot-username: "<put your bot's username here>"
- Proxy (example)
telegram: bot: proxy: enabled: true type: "<put proxy type here: {NO_PROXY, HTTP, SOCKS4, SOCKS5}>" host: "<put proxy host here>" port: "<put proxy port here>"
./gradlew clean build
Output: ./build/libs/telegram-spring-boot-example-0.1.jar
java -jar build/libs/telegram-spring-boot-example-0.1.jar \
--spring.config.location=classpath:credentials.yaml \
--spring.config.location=classpath:proxy.yaml