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

Flock

Schemesflock://
Cargo featureservice-flock
Servicehttps://flock.com/
Body formatstext (first is the default)
Attachmentsno
Title length250 characters
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedyes

URL formats

{schema}://{token}
{schema}://{botname}@{token}
{schema}://{botname}@{token}/{targets}
{schema}://{token}/{targets}

{schema} is one of flock://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{botname}Bot Namestringno
{targets}Targetslistnoany of to_channel, to_user; separated by /
{to_channel}To Channel IDstringnoprefix #; must match ^[A-Z0-9_]+$
{to_user}To User IDstringnoprefix @; must match ^[A-Z0-9_]+$
{token}Access Keystringyessecret; must match ^[a-z0-9-]+$

Query parameters

ParameterMeaningTypeDefaultNotes
imageInclude Imageboolyes
toTargetslistsets {targets}

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

flock://tttttttttttttttttttttttt
flock://mybot@tttttttttttttttttttttttt
flock://iiiiiiiiiiiiiiiiiiiiiiii/g:/u:abc
https://api.flock.com/hooks/sendMessage/iiiiiiiiiiiiiiiiiiiiiiii/
flock://tttttttttttttttttttttttt?image=False
flock://iiiiiiiiiiiiiiiiiiiiiiii?format=text
flock://iiiiiiiiiiiiiiiiiiiiiiii/u:uuuuuuuuuuuu?format=html
flock://iiiiiiiiiiiiiiiiiiiiiiii/g:gggggggggggg/u:uuuuuuuuuuuu/%23chan/%40user?format=text

Rejected URLs:

flock://
flock://:@/
flock://bad_token!
flock://iiiiiiiiiiiiiiiiiiiiiiii/g:/u:?format=text

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'flock://tttttttttttttttttttttttt'

Notes

Flock (flock://): messages to Flock channels or users through a webhook or bot token.