Comments (3)
Thanks @cowchimp!
Can you tell how your flow is configured exactly? What it the last node before the Telegram sender?
All message nodes (like text, image, audio, etc) that are supposed to be connected to the Telegram sender have a line like this:
var chatId = msg.payload.chatId || (originalMessage && originalMessage.chat.id);
that takes the chatId from the payload or from the originalMessage.
That approach is working for a flow like this
https://github.com/guidone/node-red-contrib-chatbot#send-image
Here the http node is preserving the msg.originalMessage and the image node creates the payload using the id of the originalMessage.
This works as long as you use e message node (like text, image, audio, etc) to prepare the payload for the sender. You cannot go to the sender directly.
There's no message node for plain file (but I'm planning to create one), what node are you using before the Telegram sender?
from node-red-contrib-chatbot.
Hi.
You are correct, of course.
It is my mistake I wasn't using the 'Message' node before the 'Sender' and that's what caused the issue.
Thanks again!
from node-red-contrib-chatbot.
Thanks for your feedback, perhaps I'll include some detailed error message
in case the flow is going directly to the sender without passing through a
message node.
Guido
Il giorno sab 1 ott 2016 alle 20:00 cowchimp [email protected] ha
scritto:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAeq93cWtRF0Em0397yAAh-K6K20YJ3rks5qvp_BgaJpZM4KLveD
.
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.