# Can't Send a message content to telegram that pass through a Oracle Node

**URL:** https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648
**Category:** Developing Nodes
**Tags:** telegram
**Created:** [12 November 2021 19:45 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648 "2021-11-12T19:45:28Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Celio](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Celio](https://discourse.nodered.org/u/Celio)
#### Post date: [12 November 2021 19:45 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/1 "2021-11-12T19:45:28Z")

</div>

I'm developing a Telegram Bot who returns a Oracle Query that is built with the User's Input. But after passing through the Oracle node it comes out without some of the msg properties and the redbot out node can´t send the result back.

The project:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/b/3b1d69720d3464850a9d274cbb69ea5b5afde623.png)

The node where I create the NODE:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/b/9bb21293cb82498c67e8db398a50afadaa5ae9f0.png)

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [12 November 2021 20:15 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/2 "2021-11-12T20:15:23Z")

</div>

Welcome @Celio to the forum.

Have you checked with a debug what is the payload going into the redbot out node?

---

<div class="post-metadata">

### Author: ![Celio](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Celio](https://discourse.nodered.org/u/Celio)
#### Post date: [12 November 2021 20:25 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/3 "2021-11-12T20:25:06Z")

</div>

Yes, this is the msg.payload from the function  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/8/88cac7494c991b26c44ff65ff6945a94ebe0ba82.png)

and this is the error the telegram out node returns on the debug window

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/7/8736a83dee452be738477c27d034537f127f52f1.png)

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [12 November 2021 21:12 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/4 "2021-11-12T21:12:25Z")

</div>

If I recall correctly you need a Conversation node between the function node and sender node.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [13 November 2021 08:37 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/5 "2021-11-13T08:37:14Z")

</div>

which contrib (node-red-contrib-???) node are you using?

---

<div class="post-metadata">

### Author: ![Celio](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Celio](https://discourse.nodered.org/u/Celio)
#### Post date: [16 November 2021 11:30 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/6 "2021-11-16T11:30:08Z")

</div>

I'm using v0.19.5: Maintenance Release

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [16 November 2021 12:20 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/7 "2021-11-16T12:20:58Z")

</div>

Wait, are you running Node-RED v0.19.5???

That release is very old. Is there a reason you are using that version??

---

<div class="post-metadata">

### Author: ![Celio](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Celio](https://discourse.nodered.org/u/Celio)
#### Post date: [16 November 2021 12:35 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/8 "2021-11-16T12:35:20Z")

</div>

The chat nodes I'm using is node-red-contrib-chatbot 0.18.3.  
I know it's old, but I'm new in the company and don't know why they didn't updated it before. Now we're in a project with the IT department to re-structure and update.  
Could this problem be some version bug?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [16 November 2021 13:44 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/9 "2021-11-16T13:44:01Z")

</div>

> [@Celio](#):
>
> Could this problem be some version bug?

That could be part of it. Node-RED v 0.19.5 was released in October of 2018 over three years ago. The current release is v2.1.3 so as you can see you are behind by quite a lot.

In addition node-red-contrib-chatbot is currently at version 0.19.11

That said, you should put a `debug` node (set to display the complete msg object) on the output of the node feeding the Oracle node and another `debug` node on the output of the Oracal node to see what changes are hapening to the msg. It is possibel that the oracle node is removing some of the information that you need to send to the chatbot. If so, you night want to mov that data to another part of the msg and then after the oracle node, you can put it back where it needs to be.

---

<div class="post-metadata">

### Author: ![Celio](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Celio](https://discourse.nodered.org/u/Celio)
#### Post date: [16 November 2021 19:32 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/10 "2021-11-16T19:32:26Z")

</div>

Thanks! Using a Switch to preserve the msg object, changing only the payload.content and a Delay to wait the Query before sending the message, it worked.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/c/ac88af2a1b49be4233d44fd10f964b0134ee4473.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [30 November 2021 19:33 UTC](https://discourse.nodered.org/t/cant-send-a-message-content-to-telegram-that-pass-through-a-oracle-node/53648/11 "2021-11-30T19:33:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
