}
}
-func TestWhatsAppTakesOnlyText(t *testing.T) {
+func TestWhatsAppSkipsExcludedMessages(t *testing.T) {
at := time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC)
testCases := []struct {
name string
event.Info.Chat = types.StatusBroadcastJID
},
},
- {
- name: "a photo with a caption",
- change: func(event *events.Message) {
- event.Message = &waE2E.Message{
- ImageMessage: &waE2E.ImageMessage{
- Caption: new("look"),
- },
- }
- },
- },
{
name: "a text of spaces",
change: func(event *events.Message) {