mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
- Switch from the local `WechatComAppClient` (whose `fetch_access_token` may return the raw response dict and whose background refresh loop re-fetches every 60s) to the stock `wechatpy.enterprise.WeChatClient`. - Use `client.access_token` (string property) when building sync_msg / send_msg URLs; the previous `client.fetch_access_token()` call could interpolate a dict into the URL and yield errcode 40014. - Always skip historical messages on first start; drop the `wechatcom_kf_skip_history_on_first_start` config — there is no real case for replaying up to 14 days of history. - Change default callback port from 9899 to 9888. Co-authored-by: Cursor <cursoragent@cursor.com>