Ok so here are the flow.
I checked and TotallyInformation are correct regarding passwords, they are not in the flow.
So in the exported flow i am only connected to the working function node and not the none-working Change node (see picture). Just to be clear, it does not work when i bypass my function node, through the change node. The change node should do the exact same thing as the function node, but it does not.
[{"id":"aa33016d.b3794","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"6618ba55.82d724","type":"telegram sender","z":"aa33016d.b3794","name":"","bot":"152ce6b7.4d69c9","x":490,"y":160,"wires":[["1be6d811.298e28"]]},{"id":"46ab6f8e.9252d","type":"inject","z":"aa33016d.b3794","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":160,"wires":[["556f04ec.6413ec"]]},{"id":"556f04ec.6413ec","type":"function","z":"aa33016d.b3794","name":"build payload","func":"msg.payload = {chatId: \"1049505879\", type: \"photo\", content: \"/home/pi/Pictures/cat.jpg\", caption:\"Picture of cat\"};\n\n//chatId: msg.chatId,\n//msg.payload.content= \"/home/pi/Pictures/cat.jpg\";\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":160,"wires":[["6618ba55.82d724"]]},{"id":"1be6d811.298e28","type":"debug","z":"aa33016d.b3794","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.content","targetType":"msg","x":740,"y":160,"wires":[]},{"id":"d1a5f53e.867708","type":"change","z":"aa33016d.b3794","name":"","rules":[{"t":"set","p":"payload.chatId","pt":"msg","to":"1049505879","tot":"str"},{"t":"set","p":"payload.type","pt":"msg","to":"photo","tot":"str"},{"t":"set","p":"payload.content","pt":"msg","to":"/home/pi/Pictures/cat.jpg","tot":"str"},{"t":"set","p":"payload.caption","pt":"msg","to":"Picture of cat","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":240,"wires":[[]]},{"id":"152ce6b7.4d69c9","type":"telegram bot","z":"","botname":"Resedavej_test_bot","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}]