# Problems with flow from GoogleCalendar to Telegram Push

**URL:** https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323
**Category:** General
**Created:** [18 April 2019 07:33 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323 "2019-04-18T07:33:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Baggerfahrer](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@Baggerfahrer](https://discourse.nodered.org/u/Baggerfahrer)
#### Post date: [18 April 2019 07:33 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/1 "2019-04-18T07:33:53Z")

</div>

Hi all,

I just dont know what to change anymore, I tested everything what I could think of, but unsuccessfull.  
I hope anyone can help me.

My flow settup is like that:

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/053ac2e48c546be6bc68b8867863459776a67209.png)

The content if the "Info" flow:

> var mypayload = msg.payload;  
> msg.payload = {chatId :123456789, type : 'message', content : mypayload}  
> return msg;

The 1. Step gets the following information: **meaning the flow is working up to here**

> msg.payload : Object  
> object  
> title: "Restmuelltonne"  
> description: "Leerungserinnerung"  
> location: object  
> description: "AnyStreet 39, 12345 AnyLocation"  
> start: "2019-04-24T06:00:00.000Z"  
> end: "2019-04-24T07:00:00.000Z"  
> creator: object  
> name: "Any Name"  
> email: "[anyemail@gmail.com](mailto:anyemail@gmail.com)"

The 2. Step gets the following information: **the information for the chatid is added**

> msg.payload : Object  
> object  
> chatId: 123456789  
> type: "message"  
> content: object  
> title: "Restmuelltonne"  
> description: "Leerungserinnerung"  
> location: object  
> description: "AnyStreet 39, 12345 AnyLocation"  
> start: "2019-04-24T06:00:00.000Z"  
> end: "2019-04-24T07:00:00.000Z"  
> creator: object  
> name: "Any Name"  
> email: "[anyemail@gmail.com](mailto:anyemail@gmail.com)"

**But step 3 is not flowed, and i dont know why.**

When i would just inject a timestamp to the "transfer to telegram" flow, the content looks like this:

> msg.payload : Object  
> object  
> chatId: 123456789  
> type: "message"  
> content: 1555572764073  
> options: object  
> chat\_id: 123456789  
> text: 1555572764073  
> sentMessageId: 1719

**Any idea here?**

---

<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: [18 April 2019 07:58 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/2 "2019-04-18T07:58:18Z")

</div>

So if you inject a timestamp ( msg.payload.content is a string) it works

When you inject msg.payload.content as an object is doesn't work?

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [18 April 2019 08:20 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/3 "2019-04-18T08:20:18Z")

</div>

Can't really tell which telegram node you are using, but if you are using telegram-bot-home, msg.payload should contain only the text you want to receive, no objects and by default this is plain text, optionally markdown if setup correctly.

---

<div class="post-metadata">

### Author: ![Baggerfahrer](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@Baggerfahrer](https://discourse.nodered.org/u/Baggerfahrer)
#### Post date: [18 April 2019 09:27 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/4 "2019-04-18T09:27:38Z")

</div>

```auto
So if you inject a timestamp ( msg.payload.content is a string) it works

```

I would assume that the timestamp is also an object, see my post above and this screenshot:

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

---

<div class="post-metadata">

### Author: ![Baggerfahrer](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@Baggerfahrer](https://discourse.nodered.org/u/Baggerfahrer)
#### Post date: [18 April 2019 09:30 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/5 "2019-04-18T09:30:29Z")

</div>

I use this telegram node: [https://flows.nodered.org/node/node-red-contrib-telegrambot](https://flows.nodered.org/node/node-red-contrib-telegrambot)  
But i have just seen that there is an update available, i update at the moment to the version 5.5.0 and tries again.

I thought by transferring the complete payload to a variable, the text could be transferred completely to a text?! I would like to receive the entire code forwared by the google calendar with all the content availalbe.

---

<div class="post-metadata">

### Author: ![Baggerfahrer](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@Baggerfahrer](https://discourse.nodered.org/u/Baggerfahrer)
#### Post date: [18 April 2019 09:34 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/6 "2019-04-18T09:34:58Z")

</div>

with the version 5.5.0 there is also no success.... same behaviour

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [18 April 2019 10:00 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/7 "2019-04-18T10:00:58Z")

</div>

text = UTF8 message  
try [document](https://core.telegram.org/bots/api#document) with a mime\_type of text/json.

---

<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: [18 April 2019 10:02 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/8 "2019-04-18T10:02:25Z")

</div>

yes `msg.payload` looks like an object but what about `msg.payload.content`

But if you read the info for the node it states "msg.payload.content - your message text"

If you wish to convert an object to a string you would need to do it... So convert the message you get from Google as a javascript object to a JSON string using the JSON node.

---

<div class="post-metadata">

### Author: ![Baggerfahrer](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@Baggerfahrer](https://discourse.nodered.org/u/Baggerfahrer)
#### Post date: [18 May 2019 22:22 UTC](https://discourse.nodered.org/t/problems-with-flow-from-googlecalendar-to-telegram-push/10323/9 "2019-05-18T22:22:07Z")

</div>

many thanks for this hint!  
I did it accordingly and thats the way i wanted it to be. GREAT! 🙂
