WeChat iLink Typing Indicator API — undocumented but works #1553
btxro3han-code
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR
You can show the native "对方正在输入..." (typing indicator) in WeChat using the iLink bot API. This is undocumented but fully functional. We implemented it in our WeChat bot and it works great — much better than sending a temporary "thinking..." message.
The API
Step 1: Get a
typing_ticketThe ticket can be cached for ~20 hours.
Step 2: Send/cancel typing status
Key Gotcha
Both
getconfigandsendtypingrequire theilink_user_idfield. Without it you get{"ret":-2,"errmsg":"ilink_user_id required"}. This is not documented anywhere we could find — we discovered it by trial and error.TypeScript Implementation
Usage Pattern
Why This Matters
Most WeChat bots either:
The native typing indicator solves both — user sees the bot is working, no extra messages.
Hope this helps anyone building WeChat bots with iLink! 🎉
Beta Was this translation helpful? Give feedback.
All reactions