8000 Update whatsapp_message.py by buff0k · Pull Request #139 · shridarpatil/frappe_whatsapp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

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

Successfully merging this pull request may close these issues.

2 participants
0