feat(qq): bot can send and receive images and files (#1667)

Implement file upload and sending for QQ C2C messages

Reference: https://github.com/tencent-connect/botpy/blob/master/examples/demo_c2c_reply_file.py

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
This commit is contained in:
Chen Junda
2026-03-20 11:27:40 +08:00
committed by chengyongru
parent 80ee2729ac
commit d7373db419
2 changed files with 522 additions and 62 deletions

View File

@@ -34,6 +34,7 @@ async def test_on_group_message_routes_to_group_chat_id() -> None:
content="hello",
group_openid="group123",
author=SimpleNamespace(member_openid="user1"),
attachments=[],
)
await channel._on_message(data, is_group=True)