# Telegram error when sending message

**URL:** <https://discourse.nodered.org/t/telegram-error-when-sending-message/20237>\
**Category:** General\
**Created:** [13 January 2020 01:25 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237 "2020-01-13T01:25:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [13 January 2020 01:25 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/1 "2020-01-13T01:25:09Z")

</div>

I posted this in home assistant forum, it's actually a purely node red and telegram, nothing to do with home assistant:

> **[Telegram bot error when sending msg, node-red](https://community.home-assistant.io/t/telegram-bot-error-when-sending-msg-node-red/162847)**
>
> This is a flow to send a msg to telegram: ...

  
Does anyone have similar experience and how to fix it?

Thanks.

---

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [19 January 2020 00:34 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/2 "2020-01-19T00:34:56Z")

</div>

bump... if anyone knows this.

Thanks.

---

<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:** [19 January 2020 02:05 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/3 "2020-01-19T02:05:49Z")

</div>

First off, suppling the name of the telegram node you are using would be helpful, not to mention the flow, errors, platform, os, version of NR and node.js.

---

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [19 January 2020 02:23 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/4 "2020-01-19T02:23:21Z")

</div>

Thanks for replying zenofmud. The telegram node I'm using is conversation and telegram sender. I was running node-red docker (in ubuntu 18.04) with image nodered/node-red-docker:v8.  
node-red-contrib-chatbot 0.18.4.

I copied the detail of the post below. Thanks!

This is a flow to send a msg to telegram:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dc627befa7744af79dfc108aeec6f4946ed5ff47.png)

```auto
[{"id":"90fb27e7.b363c8","type":"chatbot-conversation","z":"845016a6.b38828","name":"","botDevelopment":"d1f7aac3.9c2a98","botProduction":"","chatId":"MYTELEGRAMID","userId":"","transport":"telegram","store":"","x":250,"y":380,"wires":[["2414a9fd.e0d016"]]},{"id":"2414a9fd.e0d016","type":"chatbot-message","z":"845016a6.b38828","name":"txt","message":[{"message":"hi there"}],"answer":false,"silent":false,"x":410,"y":380,"wires":[["de9151f1.5acb7"]]},{"id":"de9151f1.5acb7","type":"chatbot-telegram-send","z":"845016a6.b38828","bot":"d1f7aac3.9c2a98","botProduction":"","track":true,"passThrough":true,"outputs":1,"x":570,"y":380,"wires":[[]]},{"id":"8b5a6a.f1808598","type":"inject","z":"845016a6.b38828","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":380,"wires":[["90fb27e7.b363c8"]]},{"id":"d1f7aac3.9c2a98","type":"chatbot-telegram-node","z":"","botname":"BOTNAME","usernames":"MYTELEGRAMID","providerToken":"","polling":"1000","store":"","log":"/data/log/telegram.txt","parseMode":"","debug":false,"webHook":"","connectMode":"polling"}]

```

MYTELEGRAMID is my own telegram id, BOTNAME is the telegram bot name

When injected, I did get the correct message from telegram app. However I noticed there are errors in the debug window:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a02d5211ce8979a8a1890a2c82d02de181e31f06.png)  
Also found error in the nodered log:

Copy to clipboard

```auto
12 Jan 13:39:38 - [error] [chatbot-conversation:90fb27e7.b363c8]
12 Jan 13:39:38 - [error] [chatbot-message:txt]

```

---

<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:** [19 January 2020 09:54 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/5 "2020-01-19T09:54:38Z")

</div>

Sorry I should have been clearer, which node-red-contrib-??? are you using  
?

---

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [19 January 2020 12:43 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/6 "2020-01-19T12:43:19Z")

</div>

it is "node-red-contrib-chatbot 0.18.4"

---

<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:** [19 January 2020 15:32 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/7 "2020-01-19T15:32:49Z")

</div>

Well, that's pretty ugly. I just installed the node and restarted NR and now it doesn't recognize I have projects active... Sorry but I need to look into that issue before yours.

---

<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:** [20 January 2020 10:24 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/8 "2020-01-20T10:24:47Z")

</div>

Just to tie this back, here is a link to the issue (bug?) I found installing the node: [(Reproducable) Installed node-red-contrib-chatbot which disable/messed up projects](https://discourse.nodered.org/t/reproducable-installed-node-red-contrib-chatbot-which-disable-messed-up-projects/20580)

---

<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:** [20 January 2020 12:45 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/9 "2020-01-20T12:45:08Z")

</div>

@kanke you might want to read some of the comments on the thread I referenced and use a different node

---

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [20 January 2020 16:02 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/10 "2020-01-20T16:02:27Z")

</div>

thanks for your time. seems node-red-contrib-chatbot has issue itself. it did send the text msg without issue, but just the error showing up in the log and debug panel.

---

<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:** [20 January 2020 16:24 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/11 "2020-01-20T16:24:51Z")

</div>

I've used node-red-contrib-telegram successfully for messages, haven't tried sending a image though. You should give it a try

---

<div class="post-metadata">

**Author:** ![kanke](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kanke](https://discourse.nodered.org/u/kanke)\
**Post date:** [20 January 2020 16:34 UTC](https://discourse.nodered.org/t/telegram-error-when-sending-message/20237/12 "2020-01-20T16:34:45Z")

</div>

Will try out. Thanks.
