feat(qq): add QR scan connection for QQ bots

Scan the official QQ Bot binding page from Channels → QQ or
`nanobot channels login qq`; the returned AppID and encrypted secret are
decrypted locally, saved to config, and the channel is enabled by the
existing post-connect flow. The WebUI keeps manual entry of AppID and
Secret in Advanced, restores every QQ setup field there, and warns that
scanning again rotates the App Secret and invalidates the previous one.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
bingqilinweimaotaiandClaude Code authored and chengyongru committed 2026-10-20 21:55:17 +08:00
1 parent 9adbcc2cef
commit 6741acb391
20 files changed
+595 -8

No files matched your search

+1 -1
View File
@@ -304,7 +304,7 @@ def test_special_setup_validation_is_owned_by_channel_package(name: str):
assert plugin.setup.validator.__module__ == f"nanobot.channels.{name}.validation"
@pytest.mark.parametrize("name", ["feishu", "linear", "weixin", "whatsapp"])
@pytest.mark.parametrize("name", ["feishu", "linear", "qq", "weixin", "whatsapp"])
def test_interactive_connector_is_owned_by_channel_package(name: str):
plugin = load_channel_package(name)