80 Responses

← Previous Page 2 of 2
  1. Angela Golda
    Angela Golda May 21, 2016 at 3:49 PM |

    Kindly help me how to send whatsapp message, image & video from .net application


  2. Haider Ali
    Haider Ali June 1, 2016 at 12:02 PM |

    hi Sumit
    please tell me where i have to write this code,,,

    because i am using your code in asp.net and make some html page please guide me how can i achive it ….
    i got index page and after click send button it shows me my message on my screen with green back ground …but paroblem is how i register my mobile number and use that

    require_once ‘whatsprot.class.php’;
    $username = “11111111111”; //Mobile Phone prefixed with country code so for india it will be 91xxxxxxxx
    $password = “somepasswordstring”;

    $w = new WhatsProt($username, 0, “WhatsApp Messaging”, true); //Name your application by replacing “WhatsApp Messaging”
    $w->connect();
    $w->loginWithPassword($password);

    $target = ‘912222222222’; //Target Phone,reciever phone
    $message = ‘Your message comes here’;

    $w->SendPresenceSubscription($target); //Let us first send presence to user
    $w->sendMessage($target,$message ); // Send Message


Comments are closed.