# Combine different messages send sequentially

**URL:** <https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537>\
**Category:** General\
**Created:** [2 July 2023 09:38 UTC](https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537 "2023-07-02T09:38:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://discourse.nodered.org/u/Osiris)\
**Post date:** [2 July 2023 09:38 UTC](https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537/1 "2023-07-02T09:38:59Z")

</div>

Hello,

I would like to build a flow that receives a telegram message (works) then downloads a file (works), append something to the file, based on the original content and the telegram message and uploads the file again.

I currently struggle with how to combine the telegram message (`msg.payload["content"]`) and the result of the http request (`msg.payload` as a string).

Connecting both outputs to a function node would trigger the node as soon there a telegram message, but the file is not downloaded yet

So basically, I want the two node to be chained, with the payload from the first node passed through the second node:

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a9886cca4495fca62e1502c119f25f0e7e4a758a.png)

so that the debug node sees the payload of both objects.

How can I achieve that?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 July 2023 09:43 UTC](https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537/2 "2023-07-02T09:43:38Z")

</div>

Put a change node between telegram and http request. Have the change node copy `msg.payload` to `msg.something`. finally, set the debug to show complete message and you should see the original telegram payload (in `msg.something`) and the http response in `msg.payload`.

Obviously you can use `msg.anything` or `msg.telgramPayload` or `msg.whateverPropNameYouDesire`

---

<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:** [16 July 2023 09:43 UTC](https://discourse.nodered.org/t/combine-different-messages-send-sequentially/79537/3 "2023-07-16T09:43:59Z")

</div>

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