@theokit/gateway-whatsapp 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2831ca3: Report `capabilities.maxMessageChars` from the splitter limit, and `capabilities.threads` (true for Discord, Telegram and Slack).
8
+
3
9
  ## 0.6.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -207,3 +207,7 @@ PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome node your-app.js
207
207
  The bridge spawns without an explicit `env`, so it inherits yours and the variable
208
208
  reaches Puppeteer. `WhatsAppBaileysBackend` needs no browser at all, which is the reason
209
209
  it exists (B-001).
210
+
211
+ ## Capabilities
212
+
213
+ `adapter.capabilities.maxMessageChars` is `4096` (the splitter limit) and `threads` is `false`. See `@theokit/gateway` for the field meanings.
package/dist/index.cjs CHANGED
@@ -1868,6 +1868,9 @@ function requireNonEmpty(entries) {
1868
1868
  }
1869
1869
  }
1870
1870
  var WhatsAppAdapter = class _WhatsAppAdapter extends gateway.BasePlatformAdapter {
1871
+ get capabilities() {
1872
+ return { ...super.capabilities, maxMessageChars: WHATSAPP_MAX_TEXT, threads: false };
1873
+ }
1871
1874
  platform = "whatsapp";
1872
1875
  backendImpl;
1873
1876
  /**