Sticker Packs
Sticker packs let a team use images in discussions. Mockarty ships six original packs, can import Telegram sets and Slack custom emoji, and lets any member build a pack of their own. The bytes always live in the Mockarty media store or in the server binary; no sticker is loaded from an external CDN.
What a sticker message is
A sticker message stores only a reference: the pack and the sticker inside it. The server resolves that reference to an asset in the namespace and writes a normal image descriptor into the message. The desktop app, the browser and the phone render the same descriptor, so a sticker looks the same everywhere.
If the referenced pack or sticker does not belong to the namespace, the send is refused with a typed error. Nothing is copied between namespaces. Deleting a pack or a sticker does not break history: messages already sent keep their stored descriptor and keep rendering.
The six shipped packs
Every workspace starts with six packs of original art, drawn for Mockarty and embedded in the server binary:
| Pack | Contents |
|---|---|
| Mockarty reactions | approve, refuse, love, star, plus, minus, warning, info, up, bolt, clock, chat |
| Mockarty faces | happy, sad, angry, sleepy, cool, wink, wow, love |
| Mockarty weather | sun, rain, storm, snow, rainbow, moon, wind, thermometer |
| Mockarty dev | bug, rocket, terminal, wrench, test, package, fire, merge |
| Mockarty animals | cat, dog, fish, bird, frog, panda, fox, turtle |
| Mockarty hands | thumbs up, thumbs down, clap, raised hands, handshake, peace, wave, crossed fingers |
They need no import, no provider token and no network. A fresh or fully air-gapped install therefore has a usable picker from the first login, and they cannot be renamed or deleted.
The catalogue of public packs
Mockarty also lists a small, curated catalogue of well-known public pack families:
- Telegram sets in the style of Pepe, Gachi, Floppa, Doge and Pusheen;
- Slack custom-emoji families such as Party Parrot and Thumbs.
This is metadata only. Mockarty does not bundle, mirror or redistribute third-party artwork, because that art belongs to its authors. Each catalogue entry states where the pack comes from and what its licence says. To use one, an operator imports it by name with their own Telegram or Slack token and accepts the provider’s terms at that moment. The imported copy lives only in that workspace.
Treat a convenient import as a convenience, not as a licence: if a pack’s author restricts use, follow that restriction.
Importing a pack
Open any discussion, click Emoji & stickers in the composer and switch to the Stickers tab. The import row accepts three fields:
| Field | Meaning |
|---|---|
| Provider | Telegram or Slack |
| Pack name / set name | The Telegram sticker-set short name (getStickerSet name), or a label for a Slack emoji import |
| Provider token | A Telegram bot token or a Slack user/bot token. It is used for this request only and is never stored on the server. |
On the phone, open the sticker picker and tap Add pack, choose the provider, enter the pack name and the token, then tap Import pack. The token is sent to your server with that one request: it is not written to the phone, and the server does not keep it either. After the import the pack appears in the picker for everyone in the workspace.
The import needs outbound access to the provider (api.telegram.org, or slack.com and its emoji CDN). In a fully air-gapped installation, importing from a provider is unavailable by design; use a shipped pack or build your own pack instead.
Import limits
- at most 120 stickers per pack;
- at most 512 KiB per sticker;
- at most 12 MiB for the whole pack;
PNG,JPEG, static or animatedWebP, andGIFare stored.
Telegram animated (.tgs) and video (.webm) stickers are imported through the still preview Telegram ships with them: the sticker keeps its animated or video kind and every client renders that still preview. A pack that contains only assets with no still preview is refused with unsupported kind.
Slack has no server-side pack identity, so the pack name you enter becomes the durable label. Optionally supply a list of emoji names to import a subset; aliases (alias:other) are resolved to the asset they point at.
Re-importing
Importing the same provider pack again updates the existing pack and its stickers instead of creating duplicates. Sticker identities stay stable, so messages already sent keep working.
Animated stickers
Animated stickers are first-class:
| Format | Accepted | Notes |
|---|---|---|
GIF |
yes | Animated when the file has more than one frame |
Animated WebP |
yes | Detected from the container, not from the file name |
Static PNG / JPEG / WebP |
yes | Rendered as a still image |
APNG |
yes | Stored as a still frame with the animated flag |
Caps for a sticker you upload: 512 KiB for a still sticker, 2 MiB for an animation, 1024 px per axis, 120 stickers and 12 MiB per pack. An imported asset is bounded by the import limit above (512 KiB per file). The server inspects the bytes and records the real dimensions, a SHA-256 digest and animated: true; it never trusts the client’s claimed type or size.
Clients show the first frame immediately as a poster and play the animation while the sticker is on screen. The web renderer uses the browser’s native <img> decoder. The phone uses the platform animated decoder, bounded to a 512 px target and the 2 MiB download cap, so a crafted file cannot expand into a full-screen bitmap. A file that is too large, in an unsupported format, or of the wrong dimensions is refused with a typed error; it is never stored “just in case”.
Building your own pack
Any member can create a pack, and only its author can edit it until it is published.
On the web: open Emoji & stickers → Stickers, fill New pack name, choose an emoji for the uploaded stickers, and press Create & upload. Pick one or more files. The pack starts private to you. Press Publish on the pack header to make it part of the workspace; Withdraw hides it again.
On the phone: open the sticker picker, tap New pack, enter a name and an emoji, and choose images from the gallery. The ✎ action next to a pack opens the editor, where you can:
- rename the pack;
- add stickers from the gallery, from files, or from the camera;
- reorder stickers with the arrow actions;
- set the pack cover with the star action;
- soft-delete one sticker (messages already sent keep rendering);
- publish or withdraw the pack;
- delete the whole pack (it disappears from the picker; history survives).
The server enforces every bound and ownership rule even if a client is modified: per-file caps, per-pack count and total bytes, allowed formats, and author-only edits. Publishing an empty pack is refused.
Tap a sticker → see the pack → Add
Tap a sticker in a conversation and its pack opens, exactly as in Telegram: cover, name, author, description, sticker count and the full grid with the tapped sticker highlighted.
If the pack is not in your picker yet, the sheet offers Add to my packs. Adding is idempotent: tapping it twice still results in one installation. The pack then appears in your picker and can be browsed and chosen. Remove takes it out of your picker; stickers already sent keep rendering, and you can add the pack again later.
Emoji ↔ pack suggestions
Every shipped and imported sticker carries emoji keywords. When you type an emoji (for example 🐸) or start a :shortcode:, a small suggestion strip appears above the composer with matching stickers from your installed packs first, then from other packs in the workspace. If nothing matches, up to three catalogue entries are offered as packs to import.
The lookup is an indexed server call, not a scan of every sticker, and it is bounded. Typing a plain emoji still inserts that emoji: the strip is an offer, never a substitution. Type more text and the strip disappears.
Managing packs
| Action | Where |
|---|---|
| List packs | Stickers tab (the shipped packs come first) |
| Search | Search box above the packs — matches emoji, associated words, provider identity and pack title |
| Import | Import row (provider + set name + token) |
| Create / edit / publish | New pack row and the pack header (web) or the ✎ editor (phone) |
| Remove from my picker | Pack view → Remove |
| Enable / disable stickers for the workspace | Toggle at the top of the Stickers tab |
Disabling stickers for a namespace refuses new sends and hides the catalogue; history is unaffected.
REST API
All routes are namespaced and require the chat permission (read for GET, write for mutations).
| Method | Path | Purpose |
|---|---|---|
GET |
/api/v1/namespaces/{namespace}/chat/sticker-packs |
Namespace switch and every live pack with its stickers (?scope=installed narrows to your picker) |
GET |
/api/v1/namespaces/{namespace}/chat/sticker-packs/search?q= |
Search stickers by emoji or words |
GET |
/api/v1/namespaces/{namespace}/chat/sticker-packs/catalogue |
Curated public packs (metadata) and the shipped packs |
GET |
/api/v1/namespaces/{namespace}/chat/sticker-packs/suggest?q= |
Indexed composer suggestions |
GET |
/api/v1/namespaces/{namespace}/chat/sticker-packs/builtin/{stickerId}/raw |
One shipped sticker PNG (embedded, no media-store row) |
GET |
/api/v1/namespaces/{namespace}/chat/sticker-packs/{packId} |
One pack with the caller’s installation state |
POST |
/api/v1/namespaces/{namespace}/chat/sticker-packs |
Create an empty user pack |
POST |
/api/v1/namespaces/{namespace}/chat/sticker-packs/import |
Import a Telegram/Slack pack |
PUT |
/api/v1/namespaces/{namespace}/chat/sticker-packs/settings |
Per-namespace enable/disable |
DELETE |
/api/v1/namespaces/{namespace}/chat/sticker-packs/{packId} |
Delete a pack from the picker (legacy one-segment form) |
PATCH |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId} |
Edit title/description/author |
DELETE |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId} |
Delete a pack (editor form) |
POST |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/stickers |
Upload one sticker (multipart: file, emoji) |
DELETE |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/stickers/{stickerId} |
Soft-delete one sticker |
PUT |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/order |
Rewrite the sticker order |
PUT |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/cover |
Set the pack cover |
POST |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/publish |
Publish or withdraw |
POST |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/install |
Add to my packs (idempotent) |
DELETE |
/api/v1/namespaces/{namespace}/chat/sticker-packs/packs/{packId}/install |
Remove from my packs |
Pack entries carry builtin: true for the shipped packs, ownerId for a user pack, published, and installed for the calling user. Each sticker carries either an attachmentId (bytes in the media store) or an explicit url (shipped packs), plus kind, animated, digest, width, height and sizeBytes when known. Renderers use url when present and otherwise build the attachment path.
Import body
{
"source": "telegram",
"externalId": "my_cat_pack",
"title": "Cats",
"token": "<operator-supplied bot token>"
}
For Slack, source is "slack", externalId is the pack label, and an optional emoji array narrows the import.
Typed failures
| Code | Meaning |
|---|---|
sticker_import_token_required |
No provider token was supplied; the provider was not called |
sticker_import_token_invalid |
The provider rejected the token (Telegram answers 401). Supply a valid token |
sticker_import_rate_limited |
The provider asked to slow down (Telegram answers 429); retry after the delay it reports |
sticker_import_not_found |
The provider says the pack does not exist or is not visible to the token |
sticker_import_too_large |
The pack exceeds the sticker-count or byte budget |
sticker_import_unsupported_kind |
The pack holds no asset that can be stored as a still image |
sticker_import_host_refused |
An asset URL points outside the provider allowlist (SSRF guard) |
sticker_import_provider_error |
The provider call failed (network, status, malformed payload) |
sticker_not_found |
The pack/sticker is unknown, deleted, or owned by another namespace |
sticker_pack_not_owner |
The pack belongs to another author |
sticker_media_too_large |
The uploaded file, or the pack’s total bytes, exceeds the cap |
sticker_media_unsupported_format |
The bytes are not PNG, JPEG, WebP or GIF |
sticker_media_dimensions |
Width or height is outside the accepted range |
sticker_pack_full |
The pack already holds the maximum number of stickers |
sticker_pack_invalid_view |
The reorder/cover request names an unknown or duplicate sticker |
Telegram answers STICKERSET_INVALID for a set that does not exist, was removed, is blocked in your region, or belongs to a bot other than yours. All four arrive as sticker_import_not_found; the API does not invent a distinction the provider does not make. The catalogue ships resolvable public names, but a pack can still disappear or be blocked after publication — that is the provider’s answer, not an import bug.
| sticker_unavailable | Stickers are disabled for this workspace, or the asset cannot be served |
Automation (MCP, SDK, CLI)
Sticker management is deliberately not exposed through MCP tools, the SDKs or the CLI. Importing a provider pack requires a secret operator token, and the rest of the flow (creating a pack, arranging its art, choosing a cover, publishing) is an interactive authoring task rather than a repeatable automation. The REST API above remains available to an operator who needs it; MCP and the SDKs stay focused on test, mock and run workflows.
Sending a sticker is part of the ordinary message flow, not pack management: the existing MCP chat-send tool accepts stickerPack and stickerId. No pack-management operation was added to MCP, the SDKs or the CLI.
Sending
A sticker is sent by posting a message with kind: "sticker" plus stickerPack and stickerId. The server resolves the reference, refuses an inaccessible one, and stores the enriched image descriptor (including the animated flag). The picker does this automatically in the desktop, web and mobile clients.
Legacy packs
Packs uploaded before durable packs existed appear in the same picker as attachment-backed packs. They can still be renamed and extended with more images. New packs use the durable model described above.