A comprehensive Java library for building Telegram bots with full support for the latest Bot API features.
Java Telegram Bot API is a Java library that provides a complete interface to the Telegram Bot API, allowing developers to create, manage, and extend Telegram bots. It handles all Bot API methods, including messaging, updates via getUpdates or Webhook, payments, games, and Telegram Passport data decryption.
Java developers building Telegram bots for automation, customer service, gaming, or integrated payment solutions.
It offers a type-safe, full-featured Java mapping of the Telegram Bot API with support for synchronous and asynchronous operations, custom HTTP client configuration, and comprehensive coverage of Telegram's latest features like payments and Passport.
Telegram Bot API for Java
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements all methods from Telegram Bot API 9.6, including payments, games, and Passport, ensuring full feature support as stated in the README.
Supports getUpdates, Webhook, and UpdatesListener for receiving messages, allowing developers to choose based on their infrastructure needs, detailed in the Getting Updates section.
Includes decryption API for Telegram Passport data with examples for handling encrypted credentials and files, as shown in the Telegram Passport section.
Provides both synchronous and asynchronous request execution, enabling blocking and non-blocking operations to suit different application requirements.
Built on OkHttp, allowing custom configuration for timeouts and interceptors, as mentioned in the Creating your bot section for tailored network behavior.
Lacks built-in support for bot states or conversation flows, requiring developers to implement these from scratch, which can increase complexity and development time.
Setting up webhooks requires manual server configuration and certificate handling, as demonstrated in the Webhook section, adding deployment overhead compared to managed solutions.
As a low-level API wrapper, it doesn't offer opinionated frameworks for common bot patterns, forcing developers to write more boilerplate code for routine tasks.