WeCom¶
Send notifications to WeChat Work (Enterprise WeChat) using webhook bots.
URL Format¶
wecom://key
URL Fields¶
Query/Param Props¶
Props can be either supplied using the params argument, or through the URL using
?key=value&key=value etc.
-
Key - Bot webhook key (Required)
-
MentionedList - Users to mention (comma-separated) (Required)
-
MentionedMobileList - Mobile numbers to mention (comma-separated) (Required)
-
key: The webhook key from your WeChat Work bot (required).
Example URL¶
wecom://693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa
Create a Webhook Bot in WeChat Work¶
Official Documentation: Webhook Bot Guide
-
Create a Group Bot: a. Open WeChat Work on PC or Web. b. Find the target group for receiving notifications. c. Right-click the group and select "Add Group Bot". d. In the dialog, click "Create a Bot". e. Enter a custom bot name and click "Add". f. You will receive a webhook URL.
-
Get the Webhook Key:
- The webhook URL will look like:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=XXXXXXXXXXXXXXXXXX -
The
keyis the value after?key=in the URL. -
Configure Shoutrrr:
- Use the key in the Shoutrrr URL:
wecom://YOUR_WEBHOOK_KEY
Message Features¶
- Supports text messages up to 4096 characters
- Can mention users with
mentioned_listparameter - Can mention users by mobile number with
mentioned_mobile_listparameter
Example with Mentions¶
```bash shoutrrr send "wecom://693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa" "Alert message" --mentioned_list "@all"