Frappe_whatsapp print format

Im using the frappe_whatsapp by shridar patil,
Its working properly but there is something missing.
There is no option for print format select which need to send with the message, its sending only the standard/ Default format. Does anybody know how to send the print format according to condition for the same Sales Invoice print.

I have 2 different format for SI one is Partly Paid and another is for Paid. but as print format is set to standard it always takes the standard print.

Please let me know if anybody have a solution or its already resolved Issue.

You can hook into the before_send or message build step in frappe_whatsapp and slip in a quick condition on the doc.status, then pass your chosen print_format into the get_pdf call. I’ve done something similar by overriding the send_whatsapp utility in a custom app and it worked fine. If you don’t want to override the whole thing, a small server script can also intercept and swap the format on the fly.