feat!: api 拆包、心跳迁入传输层、限流重试与后台 handler

This commit is contained in:
snowy-yang committed 2026-09-20 21:26:55 +08:00
1 parent 750ed81d96
commit 3237558128
30 files changed
+1145 -714

No files matched your search

+5 -2
View File
@@ -1,6 +1,5 @@
from qqbotsdk.config import Config
from qqbotsdk.connecter import WebhookConnecter
from qqbotsdk.emitter import EventEmitter
from qqbotsdk.queue import EventQueue
@@ -16,7 +15,11 @@ def make_connecter() -> WebhookConnecter:
webhook_port=8080,
webhook_path="/qqbot/webhook",
)
return WebhookConnecter(config, EventEmitter(EventQueue()), EventQueue())
async def noop_handle(payload):
return None
return WebhookConnecter(config, EventQueue(), noop_handle)
def test_first_push_is_not_duplicate():