# How to change the payload so it can be sent via telegram

**URL:** <https://discourse.nodered.org/t/how-to-change-the-payload-so-it-can-be-sent-via-telegram/81518>\
**Category:** General\
**Created:** [23 September 2023 13:53 UTC](https://discourse.nodered.org/t/how-to-change-the-payload-so-it-can-be-sent-via-telegram/81518 "2023-09-23T13:53:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronaltama](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ronaltama/32/81681_2.png) [@Ronaltama](https://discourse.nodered.org/u/Ronaltama)\
**Post date:** [23 September 2023 13:53 UTC](https://discourse.nodered.org/t/how-to-change-the-payload-so-it-can-be-sent-via-telegram/81518/1 "2023-09-23T13:53:49Z")

</div>

javascript coding to change msg.payload to "content",

 ![Node-RED - Google Chrome 23_09_2023 21_48_29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2aa2465f3200c3ce0b7c9efa201685702038051c.png)  
 ![Node-RED - Google Chrome 23_09_2023 21_48_51](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/6677a99029046565f28af831fb1db7434ea5add6.png)

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [23 September 2023 14:54 UTC](https://discourse.nodered.org/t/how-to-change-the-payload-so-it-can-be-sent-via-telegram/81518/2 "2023-09-23T14:54:56Z")

</div>

It should be something like this;  
To much quotation marks in your data names now.

```auto
msg.payload = {chatId :12345678,
                 type : 'message',
              content : msg.payload};

```

---

<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:** [22 November 2023 14:55 UTC](https://discourse.nodered.org/t/how-to-change-the-payload-so-it-can-be-sent-via-telegram/81518/3 "2023-11-22T14:55:30Z")

</div>

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