fix: split Wecom messages exceeding 2048-byte limit (#1901)

Co-authored-by: Oracle Public Cloud User <opc@arm1.subnet.vcn.oraclevcn.com>
This commit is contained in:
Jinzhe Zeng
2026-01-05 15:04:46 +08:00
committed by GitHub
parent 45bedbe70e
commit 1cd586634d
2 changed files with 58 additions and 4 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ class WecomClient:
self.access_token = await self.get_access_token(self.secret)
url = self.base_url + '/message/send?access_token=' + self.access_token
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=None) as client:
params = {
'touser': user_id,
'msgtype': 'text',