Skip to content

Your lightweight open-source personal agent.

Update qq.py

Liwxd0a48ed23c7e
diff --git a/nanobot/channels/qq.py b/nanobot/channels/qq.py
index 7b171bc45..99a712b51 100644
--- a/nanobot/channels/qq.py
+++ b/nanobot/channels/qq.py
@@ -56,6 +56,7 @@ class QQChannel(BaseChannel):
self.config: QQConfig = config
self._client: "botpy.Client | None" = None
self._processed_ids: deque = deque(maxlen=1000)
+ self._msg_seq: int = 1 # Message sequence to avoid QQ API deduplication
async def start(self) -> None:
"""Start the QQ bot."""