GithubHelp home page GithubHelp logo

Comments (3)

kocherovv avatar kocherovv commented on May 23, 2024

Please clarify, do you want to have a WhatsApp bot that would listen to some kind of group or chat and forward messages from there to another chat?

Yes, you can write such a bot, but you will need a separate phone number and instance for this bot.

For example, you have an instance “A” to which you have your personal phone number attached. And also instance “B” to which the bot’s phone number is attached.
Your application should listen to webhooks from instance “A” and, if it receives an incoming message from your group X, forward its contents to group Y but from instance “B”.

from whatsapp-api-client-python.

taaaal avatar taaaal commented on May 23, 2024

Understood. Sorry for the poor explanation. I thought there is a system which maintains bots (of course without an attached phone number), in any case - irrelevant.

So is there a type of event that handles incoming and outgoing messages?

from whatsapp-api-client-python.

kocherovv avatar kocherovv commented on May 23, 2024

Unfortunately, there are no bots on WhatsApp without phone numbers like there are on Telegram or Discord.

Yes, all types of webhooks are described in our documentation:
https://greenapi.com/en/docs/api/receiving/notifications-format/

You can filter incoming messages by fields of the senderData object to determine the list of groups you want to listen to:
https://greenapi.com/en/docs/api/receiving/notifications-format/incoming-message/Webhook-IncomingMessageReceived/

from whatsapp-api-client-python.

Related Issues (12)

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.