© Nicolas Modrzyk 2019
Nicolas ModrzykBuilding Telegram Botshttps://doi.org/10.1007/978-1-4842-4197-4_8

8. Week 8: Java

Nicolas Modrzyk1 
(1)
Tokyo, Tokyo, Japan
 

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 ...

Get Building Telegram Bots: Develop Bots in 12 Programming Languages using the Telegram Bot API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.