@whanext/core 0.19.1 → 0.19.2

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.2
4
+
5
+ - Corrigido o download real de mídias citadas no provider Zapo: `downloadMedia()` agora entrega o `Proto.IMessage` bruto diretamente ao `downloadBytes()`, como suportado pela API do Zapo.
6
+ - Envelopes `viewOnceMessage`, `viewOnceMessageV2` e `viewOnceMessageV2Extension` são desembrulhados antes do download, evitando falhas ao responder imagens/vídeos de visualização única.
7
+ - A correção cobre replies comuns de imagem, vídeo, áudio e sticker, além de view-once.
8
+
9
+
3
10
  ## 0.19.1
4
11
 
5
12
  - Corrige menus de lista no provider Zapo usando `interactiveMessage` Native Flow com `single_select` em vez do `listMessage` legado.
package/dist/index.js CHANGED
@@ -2859,9 +2859,8 @@ var ZapoProvider = class {
2859
2859
  );
2860
2860
  }
2861
2861
  try {
2862
- const bytes = await this.#requireClient().message.downloadBytes(
2863
- message
2864
- );
2862
+ const mediaMessage = unwrapZapoMessageContent(message.message) ?? message.message;
2863
+ const bytes = await this.#requireClient().message.downloadBytes(mediaMessage);
2865
2864
  return {
2866
2865
  data: Buffer.from(bytes),
2867
2866
  kind: normalized.media.kind,