Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 781 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 781 Bytes

WhatsApp Alert Bot library in C

Showcase

Here is a sample program to use the library:

// example.c
#include <stdio.h>
#include "whatsapp_alert.h"

int main()
{
    char *message = "Hi, What's up?"
    char *number = "9194xxx3xx29"; // number with country code prefix

    if(whatsappSendMessage(number, message)) {
        puts("Message sent!");
    } else {
        puts("Message wasn't sent.");
    }
    
    return 0;
}

Compile as follows:

gcc example.c whatsapp_alert.c -lcurl

This library was originally written for OpenVenti by me.

See documentation >>