# Node-red-contrib-chatbot Telegram

**URL:** <https://discourse.nodered.org/t/node-red-contrib-chatbot-telegram/77265>\
**Category:** General\
**Created:** [5 April 2023 09:22 UTC](https://discourse.nodered.org/t/node-red-contrib-chatbot-telegram/77265 "2023-04-05T09:22:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [5 April 2023 09:22 UTC](https://discourse.nodered.org/t/node-red-contrib-chatbot-telegram/77265/1 "2023-04-05T09:22:03Z")

</div>

Hello all  
I have a problem that I want to implement with Node-Red.  
We have a building management technology, where fault reports from the system are currently being sent to Telegram in an external program.  
Unfortunately, this program will no longer be supported.  
I thought that you could do this with Node-Red and the chat bot.  
I have no idea how to get the data in the chat -Bot.  
The configuration from the system looks like this.  
Can someone help me ????

service  
name protocol over  
Ascii Telegram ASCII TCP/IP (Winsock)

Registration target  
Name service destination address  
Telegram -1- Ascii Telegram Telegram server 192.168.xxx.xxx:1xxxx

News

```auto
{ "Events": [] } { "ID": "xxxxxxxx" 
"Message": "<pre> {statetext} </pre>", 
"State": {state? False, True},
 "Statet text": "{state? OFF, ON}", 
"Package name": "<b> company </b> {package_name}" 
},

```

Output on the cell phone  
(HK results from the "ID")  
05.04.2023 09:11:37 HK 2.Ug cold  
ON  
Disorder pump 1 WT NT CHP HVB2U242203 PJ101Y101Y digital input A Disorder pump 1 WT NT CHP HVB2U242203 PJ101Y101Y

* * *

Hallo Ihr alle  
Ich habe ein Problem das ich mit Node-Red umsetzen möchte.  
Wir haben eine Gebäudeleittechnik, dort werden zurzeit Störmeldungen aus dem System in einem Externen Programm auf Telegram gesendet. Leider wird dieses Programm nicht mehr supported.  
Ich habe mir überlegt das man das eventuell mit Node-red und dem Chat Bot erreichen kann.  
Leider habe ich keine Idee wie man die Daten in den Chat Bot bekommt.  
Die Konfiguration aus dem System sieht wie folgt aus.  
Kann mir da jemand helfen????

Dienst  
Name Protokol Verbinden über  
ASCII Telegram ASCII TCP/IP (Winsock)

Meldeziel  
Name Dienst Zieladresse  
Telegram -1- ASCII Telegram Telegram Server 192.168.xxx.xxx:1xxxx

Nachricht

```auto
{
  "Events": [
  ]
}
 {
      "Id": "xxxxxxxx"
     "Message": "<pre>{STATETEXT}</pre>",
      "State": {STATE ? false,true},
      "StateText": "{STATE ? AUS,EIN}",
      "PackageName": "<b>Firma</b> {PACKAGE_NAME}"
},

```

Ausgabe auf dem Handy (HK ergibt sich aus der „Id“)  
05.04.2023 09:11:37 HK 2.UG Kälte  
EIN  
Störung Pumpe 1 WT NT BHKW HVB2U242203 PJ101Y101Y Digitalereingang

Gruß Arno

---

<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:** [5 April 2023 12:01 UTC](https://discourse.nodered.org/t/node-red-contrib-chatbot-telegram/77265/2 "2023-04-05T12:01:42Z")

</div>

You will need to set up a new bot first since only one controller can control a bot. The instructions are provided in the node I believe. When you've done that, run through the provided examples and then come back and people will be able to provide further help.

---

<div class="post-metadata">

**Author:** ![ahtdf](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@ahtdf](https://discourse.nodered.org/u/ahtdf)\
**Post date:** [13 April 2023 16:15 UTC](https://discourse.nodered.org/t/node-red-contrib-chatbot-telegram/77265/3 "2023-04-13T16:15:14Z")

</div>

Thanks for the answer  
The bot is installed and works, I get the error messages I have created and can also query statuses.  
 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12480485cbc6e33745fb35fdca25b9436981ac47.png)  
The messages arrive at this link in .  
I couldn't find anything in the examples, so I'm trying here.  
Greeting Arno

---

<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 June 2023 16:15 UTC](https://discourse.nodered.org/t/node-red-contrib-chatbot-telegram/77265/4 "2023-06-12T16:15:25Z")

</div>

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