waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] Receive album messages as individual images/videos to chatwoot

Open gkp1 opened this issue 1 year ago • 14 comments

edit: I'm actually not sure about this 'issue', my customers haven't complained about missing media. Will get more info and edit here later.

edit2: no medias seem to be missing, all medias are downloaded normally one after the other, the chatwoot app just shows the 'message not supported' error anyway. Maybe this could simply be replaced by an 'album message received' message or something.

Image

Is your feature request related to a problem? Please describe. Noticed a new message type 'Album message' (e.g album with 3 images) isn't able to be received in chatwoot, I'm just not sure how to test this album message yet, but the medias could be processed as individual messages?

   "albumMessage": {
              "expectedImageCount": 3,
              "expectedVideoCount": 0
            }
Image
{
  "jobData": {
    "app": "app_NO1ypgQA",
    "event": {
      "id": "evt_01k5yddz9ak1cbcqjk69507tsc",
      "timestamp": 1758736088362,
      "event": "message.any",
      "session": "sssssssssssssssssssssss",
      "metadata": {},
      "me": {
        "id": "[email protected]",
        "pushName": "name",
        "lid": "222222222@lid",
        "jid": "2222222222:[email protected]"
      },
      "payload": {
        "id": "[email protected]_AC299868B19F639D60618A22C13065E0",
        "timestamp": 1758736088,
        "from": "[email protected]",
        "fromMe": false,
        "source": "app",
        "to": null,
        "participant": null,
        "hasMedia": false,
        "media": null,
        "ack": 2,
        "ackName": "DEVICE",
        "replyTo": null,
        "_data": {
          "Info": {
            "Chat": "[email protected]",
            "Sender": "[email protected]",
            "IsFromMe": false,
            "IsGroup": false,
            "AddressingMode": "",
            "SenderAlt": "222222222222222@lid",
            "RecipientAlt": "",
            "BroadcastListOwner": "",
            "ID": "7777777777777777777777",
            "ServerID": 0,
            "Type": "media",
            "PushName": "hhhhhhhhhhhh",
            "Timestamp": "2025-09-24T14:48:08-03:00",
            "Category": "",
            "Multicast": false,
            "MediaType": "collection",
            "Edit": "",
            "MsgBotInfo": {
              "EditType": "",
              "EditTargetID": "",
              "EditSenderTimestampMS": "0001-01-01T00:00:00Z"
            },
            "MsgMetaInfo": {
              "TargetID": "",
              "TargetSender": "",
              "TargetChat": "",
              "DeprecatedLIDSession": null,
              "ThreadMessageID": "",
              "ThreadMessageSenderJID": ""
            },
            "VerifiedName": null,
            "DeviceSentMeta": null
          },
          "Message": {
            "messageContextInfo": {
              "deviceListMetadata": {
                "recipientKeyHash": "N3I+jrTGqc/j/w==",
                "recipientTimestamp": 1758657112
              },
              "deviceListMetadataVersion": 2,
              "messageSecret": "ffffffffffffffffff+0YCV1UYw0v8K8qnxDQ="
            },
            "albumMessage": {
              "expectedImageCount": 3,
              "expectedVideoCount": 0
            }
          },
          "IsEphemeral": false,
          "IsViewOnce": false,
          "IsViewOnceV2": false,
          "IsViewOnceV2Extension": false,
          "IsDocumentWithCaption": false,
          "IsLottieSticker": false,
          "IsBotInvoke": false,
          "IsEdit": false,
          "SourceWebMsg": null,
          "UnavailableRequestID": "",
          "RetryCount": 0,
          "NewsletterMeta": null,
          "RawMessage": {
            "messageContextInfo": {
              "deviceListMetadata": {
                "recipientKeyHash": "N3I+jrTGqc/j/w==",
                "recipientTimestamp": 1758657112
              },
              "deviceListMetadataVersion": 2,
              "messageSecret": "fffffffffffffff+0YCV1UYw0v8K8qnxDQ="
            },
            "albumMessage": {
              "expectedImageCount": 3,
              "expectedVideoCount": 0
            }
          },
          "Status": 3
        }
      },
      "environment": {
        "version": "2025.9.4",
        "engine": "GOWS",
        "tier": "PLUS",
        "browser": null
      }
    }
  },
  "returnValue": {
    "content": "⚠️ **Esse tipo de mensagem não é suportado no ChatWoot.**\n📱 Por favor, abra o **WhatsApp** para visualizá-la.\n\nDetalhes: [chatwoot.waha | message.any => 4788](http://localhost:3000/jobs/queue/chatwoot.waha%20%7C%20message.any/4788)",
    "message_type": "incoming",
    "private": true,
    "attachments": [],
    "content_attributes": {}
  }
}

patron:PLUS

gkp1 avatar Sep 24 '25 18:09 gkp1

+1

patron:PRO

bergpinheiro avatar Sep 26 '25 18:09 bergpinheiro

+1

patron:PRO

weblooksbr avatar Sep 26 '25 21:09 weblooksbr

Edited issue with more context, I can confirm tomorrow if medias are missing or not arriving, or if they are all coming as individual medias. @bergpinheiro @weblooksbr can you verify if you are missing medias when 'album message' 'cant process' warning is received?

patron:PLUS

gkp1 avatar Sep 27 '25 02:09 gkp1

{
  "app": "app_xxxxxxxx",
  "event": {
    "id": "evt_01k64khzjfna0h7nthr53w6kqz",
    "timestamp": 1758943837775,
    "event": "message.any",
    "session": "weblooks",
    "metadata": {},
    "me": {
      "id": "[email protected]",
      "pushName": "Arno",
      "lid": "xxxxxxxxxxxx@lid",
      "jid": "[email protected]"
    },
    "payload": {
      "id": "[email protected]_AC375288FE5ED3CF1A9EB98D0B5EF179",
      "timestamp": 1758943837,
      "from": "[email protected]",
      "fromMe": false,
      "source": "app",
      "to": null,
      "participant": null,
      "hasMedia": false,
      "media": null,
      "ack": 2,
      "ackName": "DEVICE",
      "replyTo": null,
      "_data": {
        "Info": {
          "Chat": "[email protected]",
          "Sender": "[email protected]",
          "IsFromMe": false,
          "IsGroup": false,
          "AddressingMode": "",
          "SenderAlt": "xxxxxxxxxxxxx@lid",
          "RecipientAlt": "",
          "BroadcastListOwner": "",
          "ID": "AC375288FE5ED3CF1A9EB98D0B5EF179",
          "ServerID": 0,
          "Type": "media",
          "PushName": "Berg",
          "Timestamp": "2025-09-27T00:30:37-03:00",
          "Category": "",
          "Multicast": false,
          "MediaType": "collection",
          "Edit": "",
          "MsgBotInfo": {
            "EditType": "",
            "EditTargetID": "",
            "EditSenderTimestampMS": "0001-01-01T00:00:00Z"
          },
          "MsgMetaInfo": {
            "TargetID": "",
            "TargetSender": "",
            "TargetChat": "",
            "DeprecatedLIDSession": null,
            "ThreadMessageID": "",
            "ThreadMessageSenderJID": ""
          },
          "VerifiedName": null,
          "DeviceSentMeta": null
        },
        "Message": {
          "messageContextInfo": {
            "deviceListMetadata": {
              "senderKeyHash": "qwUVqb5gFeDp5g==",
              "senderTimestamp": 1758574695,
              "recipientKeyHash": "VknRp6EJxy5JWw==",
              "recipientTimestamp": 1758553413
            },
            "deviceListMetadataVersion": 2,
            "messageSecret": "VsOt2ZHpLTGomUsVO04mH+b8oG2l/j70+F41cQ4NoEs="
          },
          "albumMessage": {
            "expectedImageCount": 6,
            "expectedVideoCount": 0
          }
        },
        "IsEphemeral": false,
        "IsViewOnce": false,
        "IsViewOnceV2": false,
        "IsViewOnceV2Extension": false,
        "IsDocumentWithCaption": false,
        "IsLottieSticker": false,
        "IsBotInvoke": false,
        "IsEdit": false,
        "SourceWebMsg": null,
        "UnavailableRequestID": "",
        "RetryCount": 0,
        "NewsletterMeta": null,
        "RawMessage": {
          "messageContextInfo": {
            "deviceListMetadata": {
              "senderKeyHash": "qwUVqb5gFeDp5g==",
              "senderTimestamp": 1758574695,
              "recipientKeyHash": "VknRp6EJxy5JWw==",
              "recipientTimestamp": 1758553413
            },
            "deviceListMetadataVersion": 2,
            "messageSecret": "VsOt2ZHpLTGomUsVO04mH+b8oG2l/j70+F41cQ4NoEs="
          },
          "albumMessage": {
            "expectedImageCount": 6,
            "expectedVideoCount": 0
          }
        },
        "Status": 3
      }
    },
    "environment": {
      "version": "2025.9.4",
      "engine": "GOWS",
      "tier": "PLUS",
      "browser": null
    }
  }
}

I received this log, but I received all 6 photos.

But Waha displays an error, and then I receive the photos, one after the other: Image

patron:PRO

bergpinheiro avatar Sep 27 '25 03:09 bergpinheiro

+1

patron:PRO

mxyzt avatar Oct 08 '25 09:10 mxyzt

+1

patron:PLUS

alessandrovolpin avatar Oct 12 '25 16:10 alessandrovolpin

In fact, images arrive correctly in Chatwoot, but before images, this notification that the message is not supported appears. I think that simply removing this unnecessary warning, since images arrive correctly, would solve this problem.

Notice:

Image

patron:PRO

bergpinheiro avatar Oct 12 '25 20:10 bergpinheiro

Portuguese


Title:

Na verdade, as imagens chegam corretamente no Chatwoot, mas antes das imagens aparece essa notificação de que a mensagem não é suportada. Acho que simplesmente retirar esse aviso desnecessário, já que as imagens chegam corretamente, resolveria esse problema.

Perceber:

Image

github-actions[bot] avatar Oct 12 '25 20:10 github-actions[bot]

+1

Environment

  • WAHA: 2025.10.4 (PLUS)
  • Engine: GOWS
  • App: Chatwoot (native WAHA app)
  • Chatwoot: self-hosted inbox via WAHA app
  • Transport: Redis/worker (no custom webhook filtering)
  • WHATSAPP_HOOK_EVENTS: not used for this inbox (Chatwoot app integration)

Summary

When a customer sends multiple images at once (an “album” / media collection), the WAHA Chatwoot app posts a private note in the conversation saying the message is “not supported.”
This is confusing to agents, even though the individual images DO arrive correctly as separate messages right after.

Ask:

  • Please filter/suppress this album/collection placeholder automatically in the Chatwoot app, or
  • Provide a config option to drop such placeholders, or
  • Render a neutral internal info (no ⚠️), since it’s not an error.

Why this matters

  • The placeholder is not actionable and not user content.
  • It adds noise and suggests a failure, although actual media is delivered.

Observed payload (redacted)

Note MediaType: "collection" and the album expectation, while no media file is attached to this envelope message.

{
  "jobData": {
    "app": "app_…",
    "event": {
      "id": "evt_…",
      "timestamp": 1761209083091,
      "event": "message.any",
      "session": "…",
      "me": {
        "id": "…@c.us",
        "pushName": "…",
        "lid": "…@lid",
        "jid": "…:[email protected]"
      },
      "payload": {
        "id": "false_…@c.us_ACC827A5991274BC6E095AA5040A9744",
        "timestamp": 1761209082,
        "from": "…@c.us",
        "fromMe": false,
        "hasMedia": false,
        "ack": 2,
        "_data": {
          "Info": {
            "Chat": "…@s.whatsapp.net",
            "Sender": "…@s.whatsapp.net",
            "IsFromMe": false,
            "IsGroup": false,
            "SenderAlt": "…@lid",
            "Type": "media",
            "PushName": "…",
            "Timestamp": "2025-10-23T10:44:42+02:00",
            "MediaType": "collection"
          },
          "Message": {
            "albumMessage": {
              "expectedImageCount": 3,
              "expectedVideoCount": 0
            }
          },
          "RawMessage": {
            "albumMessage": {
              "expectedImageCount": 3,
              "expectedVideoCount": 0
            }
          },
          "Status": 3
        }
      },
      "environment": {
        "version": "2025.10.4",
        "engine": "GOWS",
        "tier": "PLUS"
      }
    }
  },
  "returnValue": {
    "content": "⚠️ This message type is not supported in …",
    "message_type": "incoming",
    "private": true,
    "attachments": []
  }
}



[![patron:PLUS](https://img.shields.io/badge/patron-PLUS-a0e6ba)](https://waha.devlike.pro/docs/how-to/plus-version/#tiers)

alessandrovolpin avatar Oct 23 '25 08:10 alessandrovolpin

+1

mcabral2510 avatar Oct 30 '25 20:10 mcabral2510

+1

patron:PRO

mxyzt avatar Oct 30 '25 23:10 mxyzt

Update: no medias seem to be missing from album messages, the only actual 'issue' is WAHA/chatwoot saying the message isn't supported when it actually is downloading everything normally

patron:PLUS

gkp1 avatar Oct 31 '25 14:10 gkp1

✅ Ready and available in dev images:

  • devlikeapro/waha-plus:dev — make sure to select the engine via the environment variable

  • devlikeapro/waha-plus:dev-arm

🕛 Note: Dev images are published nightly at 00:00 UTC, so new builds become available right after midnight UTC.

🚀 Will be included in the next release!

Thanks to @bergpinheiro 🚀

patron:PRO

devlikepro avatar Nov 03 '25 06:11 devlikepro

2025.10.5 - Album Message - #1405

patron:PRO

devlikepro avatar Nov 04 '25 07:11 devlikepro