Comments (3)
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.
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.
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)
- Установка пакета происходит некорректно HOT 5
- Предложение по улучшению HOT 1
- ImportError HOT 1
- Cant register account HOT 4
- issues on sending message through API HOT 1
- How to download destructive images/videos HOT 5
- add member to group issues HOT 2
- Question | Add member to contacts list using the API HOT 4
- Question | Find group's id by group name HOT 3
- Getting JSONDecodeError on invalid response from API HOT 5
- Требуется передавать хосты по параметру для класса GreenApi / Required to pass hosts as parameters in GreenApi class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-api-client-python.