feat(qq): Add QQ bot support to the message channel.#2411
Closed
wm7799 wants to merge 2 commits into
Closed
Conversation
- Fix _handle_c2c_message and _handle_group_message to support ISO 8601 timestamp format - Rewrite both handlers with uniform indentation to prevent IndentationError - Add Platform.QQ to platform_env_map and platform_allow_all_map This resolves the crash when receiving C2C messages and enables per-user allowlist control. Co-authored-by: Hermes Agent <agent@hermes>
Author
|
前几天我看你们添加了钉钉的支持。QQ用户比钉钉用户更多,所以写了这个。希望合并分支,添加对QQ机器人支持。 已经充分测试,发送接收消息正常。 |
QQ platform requires aiohttp for HTTP/WebSocket. Add to main deps. Co-authored-by: Hermes Agent <agent@hermes>
f8b0cc3 to
8ccdeba
Compare
|
不支持markdown吗? |
teknium1
added a commit
that referenced
this pull request
Apr 14, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR #2411 finding) - Wire timestamp parsing into all 4 message handlers
teknium1
added a commit
that referenced
this pull request
Apr 14, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR #2411 finding) - Wire timestamp parsing into all 4 message handlers
Contributor
ulasbilgen
pushed a commit
to ulasbilgen/hermes-adhd-agent
that referenced
this pull request
May 1, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR NousResearch#2411 finding) - Wire timestamp parsing into all 4 message handlers
aj-nt
pushed a commit
to aj-nt/hermes-agent
that referenced
this pull request
May 1, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR NousResearch#2411 finding) - Wire timestamp parsing into all 4 message handlers
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR NousResearch#2411 finding) - Wire timestamp parsing into all 4 message handlers
gweeteve
pushed a commit
to gweeteve/hermes-agent
that referenced
this pull request
Jun 2, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR NousResearch#2411 finding) - Wire timestamp parsing into all 4 message handlers
Egavasyug
pushed a commit
to Egavasyug/hermes-agent
that referenced
this pull request
Jun 10, 2026
- Add Platform.QQBOT to _UPDATE_ALLOWED_PLATFORMS (enables /update command) - Add 'qqbot' to webhook cross-platform delivery routing - Add 'qqbot' to hermes dump platform detection - Fix test_name_property casing: 'QQBot' not 'QQBOT' - Add _parse_qq_timestamp() for ISO 8601 + integer ms compatibility (QQ API changed timestamp format — from PR NousResearch#2411 finding) - Wire timestamp parsing into all 4 message handlers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
QQ Bot crashes when receiving C2C messages:
Additionally, gateway fails to restart due to indentation errors.
Root Cause
timestampfrom integer milliseconds to ISO 8601 string._handle_c2c_messageand_handle_group_messagecalledint()directly on the timestamp.IndentationErroron gateway restart.gateway/run.pylackedPlatform.QQin env maps, preventing per-user allowlist.Changes
Platform.QQtoplatform_env_mapandplatform_allow_all_mapTesting
Notes
Co-authored-by: Hermes Agent agent@hermes