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

Kook

Schemeskook://
Cargo featureservice-kook
Servicehttps://www.kookapp.cn/
Body formatsmarkdown (first is the default)
Attachmentsyes
Title lengthno title (merged into the body)
Body length5,000 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedyes

URL formats

{schema}://{token}
{schema}://{token}/{targets}

{schema} is one of kook://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{targets}Targetslistnoseparated by /
{token}Tokenstringyessecret

Query parameters

ParameterMeaningTypeDefaultNotes
modeModechoicebotone of bot, webhook
toTargetslistsets {targets}
tokenTokenstringsets {token}

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):

kook://kookbottoken123/1234567890
kook://kookbottoken123/1234567890/@1111111111
https://www.kookapp.cn/api/v3/incoming/nativekey123
kook://kookbottoken123/9876543210/1234567890/1234567890
kook://kookbottoken123/@1111111111/%231234567890/bad/@x
kook://kookbottoken123/1234567890/?format=text
https://www.kookapp.cn/api/v3/incoming/nativekey123/?format=text
kook://abc123webhookkey/?mode=webhook

Rejected URLs:

kook://
kook://kookbottoken123/?mode=invalid

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'kook://kookbottoken123/1234567890'

Notes

Kook (kook://): messages through bot mode (channels, DMs, CDN attachments) and incoming-webhook mode.