-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
receivinglocation.json
1 lines (1 loc) · 1.14 KB
/
receivinglocation.json
1
[{"id":"7654a517.757b84","type":"telegram event","z":"e4aa33b0.1d4fd","name":"live location receiver","bot":"d086776c.7de82","event":"edited_message","autoanswer":"","x":260,"y":1360,"wires":[["365556c8.2d4362"]]},{"id":"365556c8.2d4362","type":"function","z":"e4aa33b0.1d4fd","name":"create location message","func":"if(msg.payload.location)\n{\n var lat = msg.payload.location.latitude;\n var lng = msg.payload.location.longitude;\n var user = msg.payload.from.username;\n \n msg.payload.type = 'message';\n msg.payload.content = user + ' moved to lat=' + lat + ' lon=' + lng;\n \n return msg;\n}\nelse\n{\n return null;\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":1360,"wires":[[]]},{"id":"d086776c.7de82","type":"telegram bot","z":"","botname":"HeinzBot","usernames":"","chatids":"","baseapiurl":"","updatemode":"polling","pollinterval":"300","usesocks":false,"sockshost":"","socksport":"6667","socksusername":"anonymous","sockspassword":"","bothost":"","localbotport":"8443","publicbotport":"8443","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":false}]