Coffee is a language in itself.
—Jackie Chan
In this chapter, we are going to tackle a Telegram bot in Java. The API in Java is not as bad as it looks, and debugging Java code in Visual Studio Code also works slightly better than expected.
The project will use the Java de facto build tool, Gradle. The library will be the java-telegram-bot-api.
Telegram is now proposing a payment API, so you can start selling stuff directly through Telegram. This is especially effective for selling services.
While the first part of this chapter will revisit the basics, we will then implement a bot that responds ...