You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/public/llms.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Key facts an LLM should know:
17
17
- Commands: set `commandPrefix` in options, then `client.command('name', handler)` (aliases via `name|alias`), with `client.use(middleware)`.
18
18
- Plugins: drop files in a folder and load them with `plugins: { dir: './plugins' }`. Author with `export default definePlugin({ name, setup(ctx) { ... }, onUnload? })`; `ctx` can register `command`/`use`/`on`/`once` plus a returned teardown, all auto-reversed on unload. Recursive nested scan, hot-reload on by default (`watch: true`), error-isolated (one bad plugin is skipped). Plugins are trusted in-process code (no sandbox).
19
19
- Automation: `client.broadcast(recipients, builderFn, { rateLimitPerSec, onProgress })` and `client.scheduleAt(...)`.
20
-
- Storage adapters (auth + message stores): File (default), Memory, SQLite, Postgres, Redis, Convex. Optional peer deps: `better-sqlite3`, `pg`, `redis`, `convex`. Media processing uses bundled ffmpeg and optionally `sharp` (falls back to `jimp`).
20
+
- Storage adapters (auth + message stores): File (default), Memory, SQLite, Postgres, Redis, Convex. Optional peer deps: `better-sqlite3`, `pg`, `redis`, `convex`. Media processing uses bundled ffmpeg and optionally `sharp` (falls back to `jimp`). Premium/avatar stickers are Lottie animations (`application/was`); `sticker()` auto-detects and rasterizes them to a savable animated WebP via the optional `rlottie` wasm renderer (install `rlottie` to enable; without it, passing a Lottie buffer throws a clear catchable error).
21
21
- Auto-delete: old messages are pruned from the local store on a rolling window — enabled by default with a 1-month `maxAgeMs` (`autoDelete: false` disables; override `maxAgeMs`/`maxPerChat`/`intervalMs`/`chats`). Local store cleanup only — it never deletes messages on WhatsApp. Backed by optional `MessageStore.pruneMessages`/`deleteMessage`, implemented natively by all built-in adapters.
22
22
- Utilities exported from `zaileys`: JID helpers (`isJid`, `normalizeJid`, `isLidJid`, `isPnJid`, `jidToPhone`, `phoneToJid`, plus re-exported baileys `jidDecode`/`jidEncode`/`jidNormalizedUser`/`areJidsSameUser`/`isJidGroup`/`isJidNewsletter`/`isLidUser`/`isPnUser`), id hashers (`computeUniqueId`, `computeStaticId`), `extractLinks`, `senderDeviceOf`, `epochSecondsToMs`, `loadMedia`, `detectMimeFromBuffer`, `chunk`.
23
23
- Errors are typed classes with `.code`: `ZaileysBuilderError`, `ZaileysCommandError`, `ZaileysDomainError`, `ZaileysAutomationError`, `ZaileysStoreError`.
0 commit comments