Viber
| Schemes | viber:// |
| Cargo feature | service-viber |
| Service | https://www.viber.com/ |
| Body formats | text (first is the default) |
| Attachments | no |
| Title length | no title (merged into the body) |
| Body length | 30,000 characters |
| Body lines | unlimited |
| Request throttle | none |
| Vendor URLs accepted | no |
URL formats
{schema}://{token}/{targets}
{schema} is one of viber://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{targets} | Receiver IDs | list | yes | separated by / | |
{token} | Authentication Token | string | yes | secret |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
avatar | Bot Avatar URL | string | ||
from | Bot Name | string | ||
to | Receiver IDs | list | sets {targets} | |
token | Authentication Token | string | sets {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):
viber://token/targetx
viber://t1/t2?token=token
viber://token/t1/t2?from=Viber%20Bot
viber://?token=token&to=t5
viber://token/t3?avatar=https://example.com/a.png
Rejected URLs:
viber://
viber:///
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'viber://token/targetx'
Notes
Viber (viber://): messages through a Viber bot.