qq-botpy
qq robot client with python3
What it is and what it does
qq-botpy is an async Python framework for building bots on Tencent's QQ Open Platform. It wraps the platform's REST API and event streaming, letting you define a bot by subclassing `botpy.Client` and implementing event handlers like `on_at_message_create` for @-mentions or `on_ready` for startup. The framework manages connection lifecycle, intent subscription, and async message dispatch via aiohttp, with APScheduler available for scheduled tasks and PyYAML for config loading.
You register which event types to listen for via an `Intents` object, then call `client.run()` with your app credentials. The framework handles incoming events as typed objects (e.g., `Message`), and you reply or post via `self.api` methods. It's designed for guild-based chat bots and direct messages, with built-in support for rich message types (embeds, markdown, keyboards, file attachments).
Use it for:
- Build a QQ guild bot that responds to @-mentions with automated replies or command processing.
- Create a scheduled announcement bot using APScheduler to post messages at fixed times.
- Implement a moderation or logging bot that listens to guild member events and message changes.
- Develop a bot that fetches external data and posts formatted embeds or markdown messages to QQ channels.
- Set up a bot that handles direct messages and routes them to a backend service.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python framework for building QQ chat bots that connect to Tencent's QQ Open Platform API, handling message events, API calls, and bot lifecycle management.
Yes, if you are building a QQ bot and accept dormant maintenance. The framework is stable with no known vulnerabilities and low install friction. However, expect no active support or updates—verify that the current API surface matches your QQ Open Platform version before committing to production use.
Install
qq-botpy on PyPI
pip
pip install qq-botpyuv
uv add qq-botpypoetry
poetry add qq-botpyInstalling qq-botpy
Before you install
Low friction install via wheel distribution. Maintenance is dormant—last release was 2024-03-22 and no commits since 2024-09-14—so expect no active bug fixes or feature updates, though the codebase remains available.
License in practice
Licensed under a permissive Tencent license (not SPDX-identified), which typically permits use and modification without restriction; verify the exact terms in the repository if redistribution or commercial use is planned.
Quickstart
pip install qq-botpy
import botpy
from botpy.types.message import Message
class MyClient(botpy.Client):
async def on_at_message_create(self, message: Message):
await message.reply(content="Hello")
intents = botpy.Intents(public_guild_messages=True)
client = MyClient(intents=intents)
client.run(appid="YOUR_APPID", token="YOUR_TOKEN")
Requires Python 3.7+. Needs valid QQ Open Platform credentials (appid and token) to connect.
Verify before relying
- Whether the dormant maintenance status affects stability or compatibility with current QQ Open Platform API versions.
- Specific Python version support ceiling (requires_python is unspecified in metadata).
- Whether aiohttp, PyYAML, and APScheduler versions are pinned or have known compatibility constraints.
Package facts
| License | Tencent (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiohttp, PyYAML, APScheduler |
| Maintenance | dormant — 875 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 259,392/month — #8,412 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: qq_botpy-1.2.1-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
nonebot2NoneBot2 is an asynchronous Python framework…
permissive · top 15,000 on PyPI
discordA Python API wrapper for Discord that provides…
unclear · top 15,000 on PyPI
discord.pydiscord.py is an async-ready Python wrapper for…
permissive · top 5,000 on PyPI
botframework-connectorEnables Python bots to send and receive…
permissive · top 5,000 on PyPI
py-cordpy-cord is an async Python wrapper for the…
permissive · top 15,000 on PyPI
pybacklogpyPyBacklogPy wraps the Backlog API to let you…
permissive · top 5,000 on PyPI
python-telegram-botProvides a pure Python asynchronous interface…
copyleft · top 1,000 on PyPI
twitchAPIA Python client library for the Twitch Helix…
permissive · top 15,000 on PyPI
pyTelegramBotAPIA Python library that wraps the Telegram Bot…
copyleft · top 5,000 on PyPI
wechatpyWeChat SDK providing Python bindings for…
permissive · top 15,000 on PyPI