# python-telegram-bot — card for AI agents

Python wrapper library for building Telegram bots with the Telegram Bot API.

Category: SDKs for hosted services · PyPI package `python-telegram-bot` · latest version 22.8 (checked 2026-11-01)
Install: `pip install python-telegram-bot`
License: LGPL-3.0-only (weak-copyleft)

In your own product (generator, app, hosted service): **conditions**. Weak copyleft: fine inside a closed product, but changes to the library's own files stay under its license and must be shared.

## Warnings
- The package says LGPL-3.0-only but the repository says GPL-3.0.

## Numbers (AgentGid data)
- Gid Score: 64.5 (#708 of all tools, 22 of 287 in its category)
- Used in 33 public projects set up for AI coding agents (0.5%)
- Downloads last week: 1,599,502 (as of 2026-11-24), +1.0% over 4 weeks
- GitHub stars: 29,612 (as of 2026-11-24)
- Last push: 2026-11-22

## Often used with
python-dotenv 75.8%, Uvicorn 72.7%, FastAPI 57.6%, Google GenAI Python SDK 54.5%, Pillow 54.5%, httpx 51.5%

## Checked alternatives (same job)
- discord.py: https://agentgid.com/tools/discord-py/agent.md
- Twilio: https://agentgid.com/tools/twilio-pypi/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/python-telegram-bot/
- Homepage: https://python-telegram-bot.org
- Repository: https://github.com/python-telegram-bot/python-telegram-bot

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
