Pyrogram
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
Decision gist · record as of 2026-08-14
Yes, but with caution. Pyrogram is stable and widely used for Telegram automation, with low install friction and no known security vulnerabilities. However, the project is abandoned—no maintenance since April 2023—so you should only adopt it if you can tolerate the risk that Telegram protocol changes or security issues in dependencies will not be addressed by the original maintainers. If you need active support or plan to rely on this for production systems, investigate maintained forks or alternatives first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later; you must have valid Telegram credentials (phone number or bot token) and network access to Telegram's servers to authenticate and use the client.
- Installation is straightforward with low friction—a pure Python wheel with only two runtime dependencies (pyaes and pysocks).
- However, the project is archived and abandoned as of late 2024, with no active maintenance; the last release was in April 2023.
License · maintenance · safety
LGPLv3 (copyleft) — Pyrogram is licensed under LGPLv3 (copyleft), which requires that any modifications you make to the library itself be shared under the same license, though applications using it as a dependency are not subject to this requirement.
last release 2023-04-30 (1202 days) · last repo commit 2024-12-23 · 4,620 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 503,487 downloads/mo, #6,304 on PyPI
Alternatives
Verify before relying
pip install pyrogram
from pyrogram import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply("Hello from Pyrogram!")
app.run()- Whether the archived repository will accept security patches or bug fixes if vulnerabilities are discovered in dependencies like pyaes or pysocks.
- Current compatibility with Telegram's MTProto protocol—whether recent Telegram client updates have broken the library's functionality.
- Whether community forks or maintained alternatives exist that build on Pyrogram's codebase.
What it is and what it does
Pyrogram is an asynchronous Python framework that wraps Telegram's MTProto API, allowing you to build custom Telegram clients and bots without using Telegram's official Bot API. It abstracts the low-level protocol details while exposing the full range of Telegram's functionality—sending and receiving messages, handling events, managing chats, and executing actions that a regular Telegram client can perform. The library is designed to be intuitive and type-hinted, supporting both async and synchronous usage patterns.
The framework depends on pyaes for encryption and pysocks for proxy support, and it targets Python 3.7 and later across CPython and PyPy. While the project is marked as Production/Stable, it is now archived and abandoned—the repository accepts no new contributions, and the last release was in April 2023. This means security updates, bug fixes, and compatibility patches with future Telegram protocol changes are unlikely to be provided by the original maintainers.
Use it for
- Build a custom Telegram client that automates message sending, forwarding, or archiving from a user account.
- Create a bot that responds to messages in private chats or groups with custom logic beyond what the official Bot API allows.
- Scrape or monitor Telegram channels and groups by acting as an authenticated user client.
- Implement Telegram-based workflows that require full API access, such as bulk messaging or account management tools.
- Develop a Telegram notification service that sends alerts or updates to specific chats programmatically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
Pyrogram is stable and widely used for Telegram automation, with low install friction and no known security vulnerabilities. However, the project is abandoned—no maintenance since April 2023—so you should only adopt it if you can tolerate the risk that Telegram protocol changes or security issues in dependencies will not be addressed by the original maintainers. If you need active support or plan to rely on this for production systems, investigate maintained forks or alternatives first.
Install
pyrogram on PyPI
Before you install
Installation is straightforward with low friction—a pure Python wheel with only two runtime dependencies (pyaes and pysocks). However, the project is archived and abandoned as of late 2024, with no active maintenance; the last release was in April 2023.
Requires Python 3.7 or later; you must have valid Telegram credentials (phone number or bot token) and network access to Telegram's servers to authenticate and use the client.
License in practice
Pyrogram is licensed under LGPLv3 (copyleft), which requires that any modifications you make to the library itself be shared under the same license, though applications using it as a dependency are not subject to this requirement.
Quickstart
pip install pyrogram
from pyrogram import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply("Hello from Pyrogram!")
app.run()
Verify before relying
- Whether the archived repository will accept security patches or bug fixes if vulnerabilities are discovered in dependencies like pyaes or pysocks.
- Current compatibility with Telegram's MTProto protocol—whether recent Telegram client updates have broken the library's functionality.
- Whether community forks or maintained alternatives exist that build on Pyrogram's codebase.
Package facts
| License | LGPLv3 copyleft |
| Python support | Supports the current Python release ~=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespyaespysocks |
| Maintenance | Abandoned 1,202 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 503,487 / month, #6,304 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Natural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: ImplementationProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: CommunicationsTopic :: Communications :: ChatTopic :: InternetTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules |
Evidence: Pyrogram-2.0.106-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “async telegram client”
- PyrogramPyrogram is an asynchronous Python framework for interacting with…
- KurigramKurigram is an asynchronous Python framework for interacting with…
- pyroforkPyrofork is an asynchronous Python framework for interacting with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also Kurigram · pyrofork · aiogram · TgCrypto · Telethon · pytgcalls · pyTelegramBotAPI · telebot · python-telegram-bot · KangelPluginsManager