Android app that forwards incoming SMS, calls and app notifications to other channels like DingTalk, WeCom, Feishu, email, Bark, Telegram or webhooks.
rubenlagus/TelegramBots
A Java library for building Telegram bots on the Telegram Bot API, supporting both long polling and webhooks.
- Stars
- 5,546
- Forks
- 1,364
- Open issues
- 196
- Last commit
- 26 days ago
What is it?
TelegramBots is a Java library for creating Telegram bots on top of the official Telegram Bot API. It wraps the API's methods and update types as Java classes, so developers can receive messages and send replies, files, and custom keyboards without manually handling raw HTTP requests.
The library supports both receiving updates through long polling (GetUpdates) and through webhooks. The maintainer recommends long polling. Inline query support is also covered, and the project is distributed through Maven Central and JitPack, with Spring Boot among the listed integrations.
It suits Java and JVM developers who want to build chat bots for Telegram, such as notification bots, command-driven utilities, or customer-facing assistants. Example bots and a companion example project are linked from the repository.
Key features
- 01Wraps the Telegram Bot API methods and update types as Java classes.
- 02Supports both long polling (GetUpdates) and webhook delivery.
- 03Includes inline query support and custom keyboards.
- 04Can send messages and files, including sending files by file_id or by uploading them.
- 05Available from Maven Central and JitPack.
Use cases
- Building a notification bot that pushes messages from a Java backend to Telegram users.
- Creating command-driven Telegram utilities or assistants written in Java.
- Adding a Telegram chat interface to an existing Spring Boot application.
Topics
FAQ
- What is TelegramBots?
- A Java library for building Telegram bots on the Telegram Bot API, supporting both long polling and webhooks. TelegramBots is a Java library for creating Telegram bots on top of the official Telegram Bot API. It wraps the API's methods and update types as Java classes, so developers can receive messages and send replies, files, and custom keyboards without manually handling raw HTTP requests.
- Is TelegramBots free to use? What license does it have?
- TelegramBots is open source under the MIT license. Check the license terms before using it in commercial products.
- Is TelegramBots still maintained?
- Actively maintained. The last commit to TelegramBots was on Oct 13, 2026.
- What can I use TelegramBots for?
- Building a notification bot that pushes messages from a Java backend to Telegram users. Creating command-driven Telegram utilities or assistants written in Java. Adding a Telegram chat interface to an existing Spring Boot application.
- Where can I get TelegramBots?
- The source code and installation instructions are on GitHub: https://github.com/rubenlagus/TelegramBots
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Scripts that let Grok Bot hand heavy coding and writing tasks to a local Pi agent on the same machine and get woken by webhook when they finish.
A single-file Telegram bot that runs ChatGPT and other AI providers on Cloudflare Workers, serverless with no local setup.
A PHP SDK for building Telegram bots on the Telegram Bot API, with built-in Laravel support.
Laravel package that adds a Telegram channel so notifications can be sent through the Telegram Bot API.
A Telegram bot that gives users a streaming ChatGPT-style chat experience, backed by Azure OpenAI or native OpenAI.