Comments (3)
@syshen yes, you can split the flow
you may want to insert a delay node between the message that is supposed to come after the first and the output node, otherwise the order will be unpredictable
from node-red-contrib-chatbot.
Hi,
i use this topic to ask similar question, is it possible to send a single message to multiple users?
E.g For telegram:
`var originalRequester = msg.originalMessage
msg.administratorslist = msg.payload
flow.set('originalMessage',originalRequester);
for (var i in msg.payload){
var cloned = RED.util.cloneMessage(msg);
cloned.payload = {};
cloned.payload.type = "message"
cloned.payload.messageId = msg.originalMessage.messageId
cloned.payload.content = "L'utente " + msg.originalMessage.from.id + ", " + "ha tentato un accesso."
cloned.payload.chatId = msg.payload[i]._id
cloned.payload.inbound = false
cloned.i = i
return cloned;
}
msg.payload = {}
return null;`
using this, only first administrator is currently notified
from node-red-contrib-chatbot.
@gabbiano83 yes you can do it without coding, just split the message node output to as many conversation node for each user who is supposed to receive the message and connect them to a telegram output node
For each conversation node you'll need to setup the correct chatId
from node-red-contrib-chatbot.
Related Issues (20)
- How to set the "HTML" parse_mode ? HOT 2
- Error on track response with multiple bot HOT 1
- Not getting data from private Slack channels HOT 1
- Documentation: Changelog is being populated with 'Untitled'
- Feature request: add phone number information HOT 1
- feature request: linkedin messenger
- npm ERR! errno ETIMEDOUT HOT 1
- Snyk vulnerabilities HOT 1
- Image URL param support?
- Telegram Webhook not responding
- An example of how to create mediaGroup?
- Telegram pinned_message
- MC not working in Docker HOT 1
- Viber Images
- install error on node red on pi HOT 6
- Uncaught Exception in Text node HOT 1
- Unable to install from Palette / Docker HOT 3
- Can I use this package to integrate with home-made web-app bot?
- FR: Support MarkdownV2 in Telegram messages.
- Elements not recognized
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 node-red-contrib-chatbot.