Send a PDF document in C# or vb.net to whatsapp?
Does somebody know how I can send or attach a .pdf
document to Whatsapp in C# or vb.net?
I tried to look in their api, but I didnt find anything.
Thanks for any help
Tony-Marketing-API.cn is a vibrant community dedicated to Facebook, Meta,Google Ads api, app development, Instagram, and related technologies. It offers valuable bug solutions, troubleshooting cases, and problem-solving strategies shared by users. Stay updated with real-world solutions, development tips, and the latest trends in digital marketing and app development.
Does somebody know how I can send or attach a .pdf
document to Whatsapp in C# or vb.net?
I tried to look in their api, but I didnt find anything.
Thanks for any help
I am currently writing a chatbot for WhatsApp. I use the 360dialog platform, which makes it possible to work with the WhatsApp Business API.
When the client sends a message, I see the following JSON object in the logs of my application:
{ "messages": [ { "from": "77773336633", "id": "ABGGd3c1cGY_Ago61ytHsZknvtLv", "image": { "id": "ffd23134-2dae-4fed-b5f8-0ce7867b6ddd", "mime_type": "image/jpeg", "sha256": "bd02100d961b5a1dbaae1dd645485ebbfeda77b44e82c015f1cf29b05654ccb9" }, "timestamp": "1605703542", "type": "image" } ], "contacts": [ { "profile": { "name": "Nurzhan Nogerbek" }, "wa_id": "77773336633" } ] }
I can't find any information in the documentation about how to download this file. In my case, I want to upload this image file that the client sends to my file storage. Please tell me which URL method from the WhatsApp API is responsible for this mechanism?
P.S. At the same time, I can send files to clients. This information is available on the official documentation.
We are building a e-retail bot on WhatsApp platform. I would like to understand if there is a possibility to integrate the Whatsapp Business Api with the product catalog option they provide in the WhatsApp for Business App.
WhatsApp Business API - https://www.whatsapp.com/business/api/?lang=en
WhatsApp for Business - https://www.whatsapp.com/business
The flow that I am looking for is
Is this something that is possible?
I am trying to send a pdf through WhatsApp Business API that is stored in google drive, but I am receiving an error " 12300 - Invalid Content-Type " can you help me where am I going wrong also, I want to know how to send a pdf in MediaUrl from my local storage. I tried using Twilio Assets but it's also not working. Here is my code:
static void Main(string[] args) { var accountSid = " "; var authToken = " "; TwilioClient.Init(accountSid, authToken); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; var mediaUrl = new[] { new Uri("google drive link") }.ToList(); var messageOptions = new CreateMessageOptions( new PhoneNumber("whatsapp:+91XXXXXX")); messageOptions.From = new PhoneNumber("whatsapp:+XXXXXXXX"); messageOptions.Body = "Hello how are you?"; messageOptions.MediaUrl = mediaUrl; var message = MessageResource.Create(messageOptions); Console.WriteLine(message.Body); Console.ReadLine(); }
I've been checking the documentation about WhatsApp Business API and Twilio Sandbox for Whatsapp and the only way I see to receive messages configuring URL for my application endpoints.
The thing is management and sec won't approve publishing an endpoint on our network to this matter. The acceptable way for them would be consuming messages from a client in the same way one connects to a mail server or any other service.
Is there any documented alternative to using endpoints to MY application?
Thx