Giter Club home page Giter Club logo

Comments (3)

guidone avatar guidone commented on June 26, 2024

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.

cowchimp avatar cowchimp commented on June 26, 2024

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.

guidone avatar guidone commented on June 26, 2024

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:

Closed #22 #22
.


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)

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.