GithubHelp home page GithubHelp logo

Send to group about whatsapi HOT 5 OPEN

venomous0x avatar venomous0x commented on July 28, 2024
Send to group

from whatsapi.

Comments (5)

gromeck avatar gromeck commented on July 28, 2024

Ok, I found out:
Invite our account to be driven by WhatAPI into your group when WhatsAPI is in listen mode.
You will receive the join into the group where the JID of the group is - (example: 1234567890-987654321).
To post to that group, the method Message in src/php/whatsprot.class.php has to be patched like this:

old:
$messageHash["to"] = $to . "@" . $this->_whatsAppServer;
new:
if (!strpos($to,'-'))
$messageHash["to"] = $to . "@" . $this->_whatsAppServer;
else
$messageHash["to"] = $to . "@g.us";

This is a hack ... of course g.us should be defined as _whatsAppGroupDomain or similar in the class.

gromeck

from whatsapi.

paullou avatar paullou commented on July 28, 2024

Can you explain more about how to retrieve my groups? and where to find the JID of the group ?
Thanks!

from whatsapi.

arthursc avatar arthursc commented on July 28, 2024

Add the user to the group, send a message and the from address is the JID of the group (concat of the owner id + groupid). Be sure to call the WhatsProt class with debug mode = 1.

Not sure how to receive group memberships.

from whatsapi.

evivz avatar evivz commented on July 28, 2024

how to send message to group ?

from whatsapi.

vibhoo avatar vibhoo commented on July 28, 2024

$w->sendMessage("gjid","MSG");

from whatsapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.