Skip to content

Update whatsapp_message.py #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

buff0k
Copy link
Contributor

@buff0k buff0k commented Apr 25, 2025

Added Specific Handling of PDF generation for DOCUMENT Headed Messages as per WhatsApp API.

Added Specific Handling of PDF generation for DOCUMENT Headed Messages as per WhatsApp API.
@buff0k buff0k mentioned this pull request Apr 25, 2025
}
}]
})
if template.header_type == "IMAGE":
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already send document from Whatsapp Notifications.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But not from "Send to WhatsApp" in the Frappe UI, hence why sending generates errors as per #138

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you should ignore if there is a document already sent. This might break if there are notifications set.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or else handle this in send_template white listed method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the user expects manually sending the message via UI to not be overriden by Notification Logic?

Copy link

Stale pull request message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants