telebot
A Telegram bot library, with simple route decorators.
What it is and what it does
Telebot is a lightweight Telegram bot framework that layers route-based message handling on top of pyTelegramBotAPI. It lets you define bot behavior using decorators that match incoming messages against regex patterns, similar to web frameworks. When a message matches a route, the decorated function receives the message object and any captured groups from the pattern.
The package is designed for simple bots that respond to commands and echo messages. It handles polling for updates from Telegram and dispatching them to the appropriate handler. However, the project is abandoned—the last commit was 2023-04-26 and it remains in Pre-Alpha status, meaning it was never considered feature-complete and has received no maintenance.
Use it for:
- Building a simple Telegram bot that responds to specific commands using route patterns without writing polling logic.
- Prototyping a Telegram bot with decorator-based message routing during early development.
- Creating a bot that echoes or transforms user messages based on regex-matched patterns.
- Learning Telegram bot development with a lightweight routing abstraction over pyTelegramBotAPI.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Telegram bot library with route-based message handling that wraps pyTelegramBotAPI and provides decorator-style command routing for building simple bots.
No. The package is abandoned and in Pre-Alpha, with no updates since 2023-04-26. While install friction is low and the MIT license is permissive, the lack of maintenance means it will not receive bug fixes or compatibility updates as Telegram's API evolves. For new projects, use an actively maintained Telegram bot library instead.
Install
telebot on PyPI
pip
pip install telebotuv
uv add telebotpoetry
poetry add telebotInstalling telebot
Before you install
Low install friction with only two runtime dependencies (pyTelegramBotAPI and requests). However, the package is abandoned—last commit was 2023-04-26 and receives no updates. Pre-Alpha status signals incomplete development.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution for commercial or private projects.
Quickstart
pip install telebot
from telebot import TeleBot
app = TeleBot(__name__)
app.config['api_key'] = 'your_bot_key'
@app.route('/command ?(.*)')
def example_command(message, cmd):
app.send_message(message['chat']['id'], f"Command: {cmd}")
app.poll(debug=True)
Requires a valid Telegram bot API key; package is abandoned and may not work with current Telegram API.
Verify before relying
- Whether the package remains compatible with current Telegram Bot API endpoints.
- Whether pyTelegramBotAPI dependency versions are pinned or if breaking changes affect telebot.
- Active maintenance status of the underlying pyTelegramBotAPI library.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pyTelegramBotAPI, requests |
| Maintenance | abandoned — 1,277 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 237,045/month — #8,967 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: telebot-0.0.5-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
pyTelegramBotAPIA Python library that wraps the Telegram Bot…
copyleft · top 5,000 on PyPI
pyroforkPyrofork is an asynchronous Python framework…
copyleft · top 15,000 on PyPI
python-telegram-botProvides a pure Python asynchronous interface…
copyleft · top 1,000 on PyPI
rlbotRLBot is a framework for writing Python bots…
permissive · top 15,000 on PyPI
PyrogramPyrogram is an asynchronous Python framework…
copyleft · top 15,000 on PyPI
TelethonTelethon is an asyncio-based Python library…
permissive · top 5,000 on PyPI
aiogramaiogram is an asynchronous Python framework for…
permissive · top 5,000 on PyPI
pytgcallsEnables Python bots to join Telegram voice…
copyleft · top 5,000 on PyPI
apache-airflow-providers-telegramIntegrates Apache Airflow with Telegram to send…
permissive · top 15,000 on PyPI
fbmessengerA Python library for sending and receiving…
permissive · top 15,000 on PyPI