# Change a object to a msg for Telegram

**URL:** <https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726>\
**Category:** General\
**Created:** [18 December 2020 20:43 UTC](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726 "2020-12-18T20:43:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [18 December 2020 20:43 UTC](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726/1 "2020-12-18T20:43:03Z")

</div>

hello  
i have a output like that

msg.payload : Object  
object  
time: "2020-12-18 20:36:21"  
brand: "OS"  
model: "Oregon-THGR122N"  
id: 246  
channel: 1  
battery\_ok: 0  
temperature\_C: 23.8  
humidity: 37

i would like to send this information (time, model, temperature\_C, humidity, battery\_ok)  
and there should be a information too like

the Battery is low, please change it (i will need just 2 new AA Battery)

just the output below connected to telegram give a

msg : string[27]  
"msg.payload.chatId is empty"

thanks for feedback to change it to a real message

---

<div class="post-metadata">

**Author:** ![vovadpua](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vovadpua/32/33923_2.png) [@vovadpua](https://discourse.nodered.org/u/vovadpua)\
**Post date:** [19 December 2020 20:08 UTC](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726/2 "2020-12-19T20:08:35Z")

</div>

To send a message to a Telegram bot user, you must specify the Chat ID of this user. There are standard examples, try to repeat them.

> **[node-red-contrib-telegrambot](https://flows.nodered.org/node/node-red-contrib-telegrambot)**
>
> Telegram bot nodes for Node-RED

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [19 December 2020 21:44 UTC](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726/3 "2020-12-19T21:44:10Z")

</div>

basicly it works, and got some Message, i just wish to add this Information, or Part of it to the message to Telegram

---

<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:** [17 February 2021 21:44 UTC](https://discourse.nodered.org/t/change-a-object-to-a-msg-for-telegram/37726/4 "2021-02-17T21:44:17Z")

</div>

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