jlucaso1/whatszig
A WhatsApp messaging client written in Zig, powered by the Go WhatsApp library.
A WhatsApp messaging client written in Zig, powered by the Go WhatsApp library.
WhatsZig is a simple WhatsApp messaging application that connects to the WhatsApp network using Zig as the primary language with Go bindings. It allows you to authenticate via QR code and send messages to WhatsApp contacts.
Clone the repository:
git clone https://github.com/jlucaso1/whatszig.git
cd whatszig
Build the project:
zig build
Execute the following command:
zig build run
On first run, the application will display a QR code in the terminal (in base64 format).
Copy the QR code data and convert it to an image using an online tool or local converter.
Scan the QR code with your WhatsApp mobile app:
After successful authentication, you'll be prompted to enter a phone number to send a message.
After the first authentication, the application creates a local database file (whatsmeow.db
) that stores your session. This means you won't need to scan the QR code again on subsequent runs, unless you log out or your session expires.
WhatsZig uses:
This project would not be possible without: