# Node red telegram bot issue

**URL:** <https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [2 February 2025 15:36 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066 "2025-02-02T15:36:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mambo](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mambo](https://discourse.nodered.org/u/mambo)\
**Post date:** [2 February 2025 15:36 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/1 "2025-02-02T15:36:08Z")

</div>

Am using the node-red-contrib-telegrambot in node red to work with home assistant.

I had this working for few days and now I just can't get it to work.

I have a very simple flow to test my command and every time I send the command to the bot, node red does not act on it. I even added a debug node after the command node and nothing comes up on the debug output.

I have used the same token and the chat ID in HA directly and I am able to receive messages but just not with nod red.

Also, every time I deploy the change in node red, I get this error "Error stopping node: Close timed out" and the node it points to is the configuration node where I have my token and the chat id.

can some one please help

Node-RED version: v4.0.8  
Node.js version: v22.11.0  
Linux 6.6.73-haos x64 LE  
node-red-contrib-telegrambot version: v16.1.2

These are some of the node red logs in home assistant:  
2 Feb 23:38:44 - [error] [telegram bot:16a9c5bd33bbd4db] Error stopping node: Close timed out  
2 Feb 23:38:44 - [info] Stopped flows  
2 Feb 23:38:44 - [info] Updated flows  
2 Feb 23:38:44 - [info] Starting flows  
2 Feb 23:38:44 - [info] Started flows  
2 Feb 23:38:44 - [info] [mqtt-broker:HAMQTTBroker] Connected to broker: mqtt://homeassistant.local:1883  
2 Feb 23:38:49 - [info] [server:Home Assistant] Connecting to [http://supervisor/core](http://supervisor/core)  
Unhandled rejection RequestError: AggregateError  
at new RequestError (/config/node\_modules/request-promise-core/lib/errors.js:14:15)  
at Request.plumbing.callback (/config/node\_modules/request-promise-core/lib/plumbing.js:87:29)  
at Request.RP$callback [as \_callback] (/config/node\_modules/request-promise-core/lib/plumbing.js:46:31)  
at self.callback (/config/node\_modules/@cypress/request/request.js:183:22)  
at Request.emit (node:events:518:28)  
at Request.onRequestError (/config/node\_modules/@cypress/request/request.js:869:8)  
at ClientRequest.emit (node:events:518:28)  
at emitErrorEvent (node:\_http\_client:103:11)  
at TLSSocket.socketErrorListener (node:\_http\_client:506:5)  
at TLSSocket.emit (node:events:518:28)  
at emitErrorNT (node:internal/streams/destroy:170:8)  
at emitErrorCloseNT (node:internal/streams/destroy:129:3)  
at processTicksAndRejections (node:internal/process/task\_queues:90:21)  
Unhandled rejection RequestError: AggregateError  
at new RequestError (/config/node\_modules/request-promise-core/lib/errors.js:14:15)  
at Request.plumbing.callback (/config/node\_modules/request-promise-core/lib/plumbing.js:87:29)  
at Request.RP$callback [as \_callback] (/config/node\_modules/request-promise-core/lib/plumbing.js:46:31)  
at self.callback (/config/node\_modules/@cypress/request/request.js:183:22)  
at Request.emit (node:events:518:28)  
at Request.onRequestError (/config/node\_modules/@cypress/request/request.js:869:8)  
at ClientRequest.emit (node:events:518:28)  
at emitErrorEvent (node:\_http\_client:103:11)  
at TLSSocket.socketErrorListener (node:\_http\_client:506:5)  
at TLSSocket.emit (node:events:518:28)  
at emitErrorNT (node:internal/streams/destroy:170:8)  
at emitErrorCloseNT (node:internal/streams/destroy:129:3)  
at processTicksAndRejections (node:internal/process/task\_queues:90:21)  
2 Feb 23:41:19 - [error] [telegram sender:Send message] Caught exception in sender node:  
Error: EFATAL: AggregateError

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [2 February 2025 18:17 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/2 "2025-02-02T18:17:06Z")

</div>

> [@mambo](#):
>
> I have used the same token and the chat ID in HA directly and I am able to receive messages but just not with nod red.

You cannot control the same bot from different places. Each bot can only be controlled from a single connection.

---

<div class="post-metadata">

**Author:** ![mambo](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mambo](https://discourse.nodered.org/u/mambo)\
**Post date:** [3 February 2025 00:47 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/3 "2025-02-03T00:47:18Z")

</div>

Ah ok. I’ll try this. Thank you

---

<div class="post-metadata">

**Author:** ![mambo](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mambo](https://discourse.nodered.org/u/mambo)\
**Post date:** [3 February 2025 00:55 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/4 "2025-02-03T00:55:19Z")

</div>

Tried with different bots too, one to use in node red and it just won’t work

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [3 February 2025 12:14 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/5 "2025-02-03T12:14:02Z")

</div>

I'm at a loss them I'm afraid. I don't use HA so I can't say whether this is an issue.

From the error, it does look like an HA issue rather than a Node-RED one since we know that it works fine in Node-RED as there are a lot of us using it. The error suggests an issue with HA's MQTT broker at second glance.

As not so many HA users inhabit this forum, you may be better off raising in the HA forum.

---

<div class="post-metadata">

**Author:** ![mambo](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mambo](https://discourse.nodered.org/u/mambo)\
**Post date:** [4 February 2025 05:37 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/6 "2025-02-04T05:37:29Z")

</div>

Thank you 🙂

---

<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:** [5 May 2025 05:38 UTC](https://discourse.nodered.org/t/node-red-telegram-bot-issue/95066/7 "2025-05-05T05:38:08Z")

</div>

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