@Steve-Mcl how to send msg.payload value from first node to last node?
say i want to use the value of one msg.payload to last node to use as templete?
what am i doing is send a magnetic torrent url from telegram and i have telegram node which detects and sends that data... cant i use that value like
tried this but does not work..
coz its not sending any value i guess as the flow passes to next node it kills the previous node values i guess
what i want is to send telegram msg value to the funtion node as below and also trigger the 1st node
hanks @Steve-Mcl...sorry for posting images of code. one help...i have two telegram trigger nodes one which detects commands and other for messages and contents..what i want is something like wait untill or switch say if i send /movieas message in telegram followed by message as xthen it should start one flow same if i send /seriesas message in telegram followed by message as xthen it should start other flow. Why am i doing this is:movies or series both the torrent magnet link starts with magnetand i want to switch this because i want to add torrent with different categories which download files to specific filepath which then runs script internally to scan and add that to jelly fin server under moviesand seriessection
For your new question: Please start a new thread with appropriate title. Include detail like "what you have" what you are trying to do" and a minimal flow using only standard nodes (e.g. an inject can "fake" the incoming telegram message" and a debug node can "fake" the outgoing telegram node)
thanks one quick question i get a data with time like this "added_on":1665160878
what i want is to compare time now with current time and check if its greater than 1665160878 what time format is this?
if i could get current time in this format i can do the compare stuff
Again. This is a different question & should be a different thread.
But to save you some time that number is a JavaScript epoch
From the net...
epoch time is Unix style in milliseconds since 01/01/1971, which means it returns a long number in milliseconds. It is epoch time or Unix timestamp. Javascript provides the Date object provides the date and time-related things
Didnt proof read that - @E1cid spotted a mistake. The number you are describing is a Unix Epoch which is number of s since 1970/01/01 00:00:00 UTC
JS works in MS so multiply by 1000 to get UTC
e.g: 1665160878 x 1000 = 16651608780000 == 2022-10-07T16:41:18.000Z
Looks like a unix timestamp in seconds.
So all you need to do is multiple it by a 1000, then it can be compared with a Node-red JS timestamp, which is in milliseconds