Automated WhatsApp Message and Document Sender using .NET
Most messaging systems rely on traditional methods, but for our WhatsApp AutoSender, we needed to create a solution that would streamline communication and file sharing for years to come. Built with .NET and powered by a simple log file, our tool ensures seamless messaging and document delivery across users, regardless of location, for decades ahead.
I knew that to get it right I was going to have to replicate the conditions of a seamless communication system, so I grabbed my .NET tools, created a new project, and got to work.
WhatsApp AutoSender
This project leverages .NET to create an automated system for sending WhatsApp messages and documents. By using a simple log.txt
file that stores user contact numbers and file locations, the system ensures a smooth and efficient process for automated messaging and document sharing.
Sample Log File Format
Here is the format for the log.txt
file used by the WhatsApp AutoSender:
1----1111111111----D:\New Folder----Sample.pdf----15144130----Please Download It----26-11-24 1:11:11 PM
WhatsApp AutoSender Log File Format
Each log entry in the log.txt
file contains the following information:
-
Status (0 or 1):
0
means the PDF has not been sent yet.1
means the PDF has been sent successfully.
-
Phone Number:
1111111111
The contact number to which the message or document is being sent. -
File Path:
D:\New Folder\Sample.pdf
The path to the document that needs to be sent. -
File Size:
15144130
The size of the document in bytes. -
Message:
Please Download It
The message accompanying the document. -
Timestamp:
26-11-24 1:11:11 PM
The time at which the log entry was created.
Each of these fields is separated by ----
in the log file, allowing the system to process the information and automate sending the message and document to the specified contact number.