Skip to content

C library to send messages as a bot in WhatsApp. Made in C for use in embedded systems for the OpenVenti Initiative.

License

Notifications You must be signed in to change notification settings

vaibhavshn/whatsapp-bot-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 >>

About

C library to send messages as a bot in WhatsApp. Made in C for use in embedded systems for the OpenVenti Initiative.

Topics

Resources

License

Stars

Watchers

Forks

Languages