# Send Raspi Ip address to Telegram

**URL:** <https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482>\
**Category:** General\
**Created:** [4 November 2019 12:47 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482 "2019-11-04T12:47:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maku12](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maku12](https://discourse.nodered.org/u/maku12)\
**Post date:** [4 November 2019 12:47 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/1 "2019-11-04T12:47:29Z")

</div>

Hi,

i want to send the current ip address as a message to telegram.

Attached the flow. I don't know how to get the msg.payload from the exec node to  
the telegram node.

[flows(2).json](https://discourse.nodered.org/uploads/short-url/t1DV0UEr11pbg3xzvUOC4xJR3Tj.json) (449 Bytes)

Many Thanks for helping

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [4 November 2019 13:05 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/2 "2019-11-04T13:05:17Z")

</div>

I use this node to get the ip:

> **[node-red-contrib-ip](https://flows.nodered.org/node/node-red-contrib-ip)**
>
> This node provides the IP address (internal & public) of the machine hosting the Node-red.

---

<div class="post-metadata">

**Author:** ![maku12](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maku12](https://discourse.nodered.org/u/maku12)\
**Post date:** [4 November 2019 13:49 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/3 "2019-11-04T13:49:02Z")

</div>

I got the Ip from the exec node, thats not the problem, what I'm trying to solve is how to get the payload from the exec node to telegram

---

<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:** [4 November 2019 15:20 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/4 "2019-11-04T15:20:51Z")

</div>

Which bit don't you understand?

The extract of the data or the formatting for Telegram?

---

<div class="post-metadata">

**Author:** ![maku12](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maku12](https://discourse.nodered.org/u/maku12)\
**Post date:** [4 November 2019 15:32 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/5 "2019-11-04T15:32:41Z")

</div>

In the meantime, I got the solution

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [4 November 2019 16:45 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/6 "2019-11-04T16:45:04Z")

</div>

so what was your solution?  
By posting the answer other people who have the same issue can find your answer rather than just reading that you fixed it

---

<div class="post-metadata">

**Author:** ![maku12](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maku12](https://discourse.nodered.org/u/maku12)\
**Post date:** [5 November 2019 09:38 UTC](https://discourse.nodered.org/t/send-raspi-ip-address-to-telegram/17482/7 "2019-11-05T09:38:02Z")

</div>

Hi, ok sorry, sure

i got a soltution with following code (function node, before telegram sender node

msg.payload = {  
chatId : xxxxxx,  
type : "message",  
content : "IP Raspi: "+msg.payload  
};  
return msg;

KR
