I want send a pdf file from c# windows application via WhatsApp. How can I do that? I khow its possible sending text messages by wa link but for attaching file like pdf I can't find anyway.
Asked
Active
Viewed 5,399 times
0
-
I think you're looking for WA API. – Bizhan Feb 11 '22 at 16:06
-
Please provide enough code so others can better understand or reproduce the problem. – Community Feb 22 '22 at 11:17
1 Answers
2
Because this question is too broad in terms of correct answer, I will post a few links, which might help you do what you asked ( depending on your needs ) :
- https://www.twilio.com/docs/whatsapp/tutorial/send-and-receive-media-messages-twilio-api-whatsapp
- https://whatsmate.github.io/2018-01-17-send-whatsapp-pdf-c-sharp-dot-net/
- https://whatsmate.github.io/2018-01-23-send-whatsapp-pdf-group-c-sharp-dot-net/
- https://developers.facebook.com/docs/whatsapp/api/media

Mihaylov
- 338
- 1
- 3
- 13
-
Thanks alot. I check those and all of that aren't free. Is there any free way? And other problem i think whatsapp api doesn't support some of countries. – Abbas Hosseini Feb 12 '22 at 10:17
-
You are welcome. As far as Twillio , I can see that there is a list of blocked countries : https://support.twilio.com/hc/en-us/articles/360051177134-What-countries-can-I-reach-with-the-Twilio-API-for-WhatsApp- . I am not sure for whatsmate though , but I suppose contacting their support would get you more information about blocked countries. Of course you can download the Business Api directly from Whatsapp's website, but of course you would need to go through the registration process : https://www.facebook.com/business/m/whatsapp/business-api . I haven't heard of any free solution so far. – Mihaylov Feb 12 '22 at 13:39
-