吴天一 deae7fd467 fix: 对齐 OneBot schema 与合并转发消息处理行为 (#1694)
* fix: make defaulted request fields optional

* fix: align onebot schemas with runtime behavior

* fix: tighten schema and unsupported action metadata

* fix: reject empty forward reference ids

* fix: update GoCQHTTPSendForwardMsg to handle messages correctly and adjust payload schema

* fix: refactor message handling in GoCQHTTPSendForwardMsg and add test for message normalization

* fix: update compatibility actions to return appropriate responses and align schemas with runtime behavior

* fix: ensure payload properties are non-null with default values in action handlers

* fix: update StreamStatus comments for clarity and enforce nickname as required in message schema

* fix: integrate sleep function in GetOnlineClient and update tests to verify API call

* fix: add production test checklist for OneBot schema alignment and message handling

* fix: remove outdated production test checklist for OneBot schema alignment
2026-03-12 01:54:33 +08:00
2025-03-16 09:33:06 +08:00
2024-11-23 18:52:53 +08:00
2025-11-13 15:39:42 +08:00
2026-02-05 12:56:53 +08:00
2025-03-16 09:36:27 +08:00

NapCat

NapCat

Modern protocol-side framework implemented based on NTQQ.

Where clouds rise and winds are born, the heart yearns for distant lands yet untraveled.

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Русский | العربية


Notice

NapCat is currently looking for a new primary maintainer. Please email nanaeonn@outlook.com if you are interested.

Community Groups

You can get the join password directly from the About page of the WebUI.

Note: The join key is only valid for the latest 100 versions, and requires NapCat version >= 4.17.31. If it fails, please update.

Welcome

  • NapCatQQ is a modern implementation of the Bot protocol based on NTQQ.

Features

  • Easy to Use
    • Beginners can get started effortlessly.
  • Quick and Efficient
    • Runs for extended periods on low-memory systems.
  • Rich API Interface
    • Fully implements most standard interfaces.
  • Stable and Reliable
    • Continuous and stable development and maintenance.

Quick Start

Download the latest version from the Release page.

First-time users should make sure to read the documentation below for a usage guide.

This is a non-profit project. For integration issues, basic questions, or underlying framework issues, please search for solutions on your own — this project's community does not provide such support.

Docs Github.IO Cloudflare.Worker Cloudflare.HKServer
Docs Cloudflare.Pages Server.Other NapCat.Top
DeepWiki Ask DeepWiki
QQ Groups Happy Family Royal Relatives Loving Family Joyful Family

Please do not mention this project in other communities (including other protocol-side or related application-side projects) to avoid disputes. If you have suggestions, please discuss them in the official group or submit a PR.

Thanks

  • Lagrange — Great support for this project; some code was referenced (with permission)

  • AstrBot — An LLM Bot framework that perfectly integrates with this project

  • MaiBot — A cyber companion Bot framework

  • qq-chat-exporter — A message export tool based on NapCat

  • And most importantly, thank you — the person reading this right now~


License

This project is open-sourced under a hybrid license. When using this project, please note the following:

  1. Third-party library code or modified portions follow their original open-source licenses.
  2. This project has obtained authorization from certain projects and is not subject to some restrictions.
  3. The remaining logic code of the project is governed by the repository license.

This repository is solely intended to improve usability and implement message push features. Furthermore, developing any project based on NapCat code without prior authorization from the repository's main author is prohibited. Please comply with local laws and regulations when using this project. Any issues arising from misuse are the responsibility of the user and anyone providing tutorials for unauthorized use.

S
Description
NapCatQQ 源码镜像(上游已删库,2026-11-12 归档)
Readme
532 MiB
0 Stars 1 Watchers 0 Forks
2026-11-13 01:21:31 +00:00
Languages
TypeScript 82.8%
JavaScript 11.3%
Python 4.7%
Shell 0.4%
HTML 0.3%
Other 0.4%