Skip to content

fix(qq): restore plain text replies for legacy clients#1941

Merged
Re-bin merged 1 commit intoHKUDS:mainfrom
tsubasakong:fix/1936-qq-plaintext-compat
Mar 13, 2026
Merged

fix(qq): restore plain text replies for legacy clients#1941
Re-bin merged 1 commit intoHKUDS:mainfrom
tsubasakong:fix/1936-qq-plaintext-compat

Conversation

@tsubasakong
Copy link
Copy Markdown
Contributor

Summary

  • restore QQ outbound sends to plain text payloads (msg_type=0 + content)
  • keep the existing msg_seq behavior for both group and C2C sends
  • add regression coverage for plain-text group and C2C QQ sends

Why

Fixes #1936. The recent markdown payload switch broke interactions for older QQ clients, while plain-text sends were previously compatible.

Validation

  • git diff --check
  • PYTHONPATH=. pytest -q tests/test_qq_channel.py (fails in this environment: missing dependency tiktoken during test import)

@wymcmh
Copy link
Copy Markdown
Contributor

wymcmh commented Mar 13, 2026

不应该恢复的,而是增加配置项,让用户自助切换!

@Re-bin
Copy link
Copy Markdown
Collaborator

Re-bin commented Mar 14, 2026

不应该恢复的,而是增加配置项,让用户自助切换!

好的,我看一下🤔

@Re-bin
Copy link
Copy Markdown
Collaborator

Re-bin commented Mar 14, 2026

不应该恢复的,而是增加配置项,让用户自助切换!

已经在main修复,可以nanobot onboard之后把msgFormat换成markdown,具体可以参考README的说明 :)

@PaomianPomix
Copy link
Copy Markdown

这么大个调整应该写到highlights的……对原来用新版QQ的用户来说和md渲染一夜之间挂掉了一样,翻了半天what's changed再找到这边才知道怎么回事,然后再去readme翻才知道config怎么改😭

sorker pushed a commit to sorker/nanobot that referenced this pull request Mar 24, 2026
…lients

fix(qq): restore plain text replies for legacy clients
Wattysaid pushed a commit to kieran-assistant/nanobot that referenced this pull request Apr 3, 2026
…lients

fix(qq): restore plain text replies for legacy clients
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qq markdown信息 破坏老版本客户端交互

5 participants