# Unable to send message to telegram

**URL:** <https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773>\
**Category:** General\
**Created:** [12 March 2022 21:05 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773 "2022-03-12T21:05:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartgirl62](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smartgirl62/32/55065_2.png) [@smartgirl62](https://discourse.nodered.org/u/smartgirl62)\
**Post date:** [12 March 2022 21:05 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/1 "2022-03-12T21:05:55Z")

</div>

I set up our local water agency to send me a daily email of our previous day's water usage. I am able to extract out the number of gallons but when I try to send a message to telegram, I receive an error. (TypeError: Cannot read properties of undefined (reading 'length')".

I'd upload the flow except the email has personal information that shows up in the debug window.

Any assistance to send the payload.content info would be great.

Michelle

 ![Screen Shot 2022-03-12 at 12.55.26 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/a/aaed70bcde3ecb3a5d6a3f0579aa7edcf608facc.png)  
 ![function copy](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97660ece2738b918e5b9e1673b3914d00016112a.jpeg)  
 ![debug](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/3/33b7386e61969405c824ff1ad2f15e02b419d5a4.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 March 2022 22:06 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/2 "2022-03-12T22:06:50Z")

</div>

Which node is generating the error? The one with id 9888e5....  
If you don't know which one that is you can use the search feature to search for the id. It is a good idea to give your nodes names, then it will show that in the debug pane instead of the id.

---

<div class="post-metadata">

**Author:** ![smartgirl62](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smartgirl62/32/55065_2.png) [@smartgirl62](https://discourse.nodered.org/u/smartgirl62)\
**Post date:** [12 March 2022 22:08 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/3 "2022-03-12T22:08:03Z")

</div>

Sorry about that, the telegram node is throwing this error. The message above the error is from the function node.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 March 2022 23:11 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/4 "2022-03-12T23:11:35Z")

</div>

What nodejs version and which telegram node package are you using?

---

<div class="post-metadata">

**Author:** ![smartgirl62](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smartgirl62/32/55065_2.png) [@smartgirl62](https://discourse.nodered.org/u/smartgirl62)\
**Post date:** [13 March 2022 00:23 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/5 "2022-03-13T00:23:29Z")

</div>

I am running HA/node red on a RPI3 so I cannot access as root to see what my node.js version is.  
I'm using this telegram node: node-red-contrib-telegrambot _11.2.4_

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 March 2022 07:34 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/6 "2022-03-13T07:34:40Z")

</div>

If you look at the node red startup log it will tell you the versions.

---

<div class="post-metadata">

**Author:** ![smartgirl62](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smartgirl62/32/55065_2.png) [@smartgirl62](https://discourse.nodered.org/u/smartgirl62)\
**Post date:** [13 March 2022 16:45 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/7 "2022-03-13T16:45:32Z")

</div>

thanks for the tip.

I am running Node.js version: v16.14.0.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 March 2022 16:58 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/8 "2022-03-13T16:58:59Z")

</div>

> [@smartgirl62](#):
>
> Node.js version: v16.14.0.

That should be fine.

---

<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:** [12 May 2022 16:59 UTC](https://discourse.nodered.org/t/unable-to-send-message-to-telegram/59773/9 "2022-05-12T16:59:40Z")

</div>

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