skillfed

qq-botpy

qq robot client with python3

qq-botpy v1.2.1 259.4K downloads/30d#8,412 on PyPI902
Permissive license Tencent DORMANT released

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-botpy

uv

uv add qq-botpy

poetry

poetry add qq-botpy

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.7Topic :: Software Development

Tags

qq bot framework pythontencent qq robot clientqq message event handlerqq bot api integrationasync qq bot developmentqq guild bot frameworkqq bot event listener
async-bot-frameworkqq-platformevent-driven

More Software Development packages