Problems with flow from GoogleCalendar to Telegram Push

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:

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"

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"

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?

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?

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.

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:

I use this telegram node: 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.

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

text = UTF8 message
try document with a mime_type of text/json.

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.

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