Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

WeCom Bot

Schemeswecombot://
Cargo featureservice-wecombot
Servicehttps://weixin.qq.com/
Body formatstext (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedyes

URL formats

{schema}://{key}

{schema} is one of wecombot://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{key}Bot Webhook Keystringyessecret; must match ^[a-z0-9_-]+$

Query parameters

ParameterMeaningTypeDefaultNotes
keyBot Webhook Keystringsets {key}

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

wecombot://botkey
wecombot://?key=botkey
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=BOTKEY
wecombot://other/?key=bot_key-2
https://qyapi.weixin.qq.com/cgi-bin/webhook/send/?key=BOTKEY&data=123
http://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=abc-123&format=markdown

Rejected URLs:

https://qyapi.weixin.qq.com/cgi-bin/webhook/send?other=1
wecombot://
wecombot://:@/
wecombot://bot.key

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'wecombot://botkey'

Notes

WeCom Bot (wecombot://): messages through WeCom group bot webhooks.