Does this look right?
[{"id":"f46565a7.143a28","type":"tab","label":"Flow 7","disabled":false,"info":""},{"id":"d81e227.c23a5e","type":"telegram sender","z":"f46565a7.143a28","name":"","bot":"ea8356ea.87f0a8","x":1400,"y":260,"wires":[["87ef4a5e.37f148"]]},{"id":"a4b10c87.c2e68","type":"telegram command","z":"f46565a7.143a28","name":"/pic","command":"/pic","bot":"ea8356ea.87f0a8","strict":false,"x":290,"y":200,"wires":[["8c045307.21b2f","433b7f13.8474a"],[]]},{"id":"87ef4a5e.37f148","type":"debug","z":"f46565a7.143a28","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1630,"y":140,"wires":[]},{"id":"6fdfd099.932fc","type":"function","z":"f46565a7.143a28","name":"send picture","func":"var pl = {\n content: msg.payload,\n message: `Hey ${msg.originalMessage.from.first_name}, here is ${msg.originalMessage.text} you requested`,\n type : 'photo',\n chatId: msg.originalMessage.chat.id,\n chat: msg.originalMessage.chat,\n from: msg.originalMessage.from,\n message_id : msg.originalMessage.message_id\n}\n\nmsg.payload = pl;\n\n\n/* type can be one of the following\nphoto\naudio\nvideo\nsticker\nvoice\ndocument\n*/\n\nreturn msg;","outputs":1,"noerr":0,"x":1070,"y":200,"wires":[["d81e227.c23a5e"]]},{"id":"433b7f13.8474a","type":"change","z":"f46565a7.143a28","name":"save chatId","rules":[{"t":"set","p":"chatId","pt":"flow","to":"payload.chatId","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":80,"wires":[[]]},{"id":"bdff64b6.c8f578","type":"function","z":"f46565a7.143a28","name":"send markdown","func":"var message = \n`\n## New message\n\nHello *markdown* formatted messages!'\n\nwith \\`inline\\` code\n\n> and quote\n>> nested\n\n\\`\\`\\`\nvar code = \"cool\";\n\\`\\`\\`\n\n| table | data |\n|---|---|\n| 1 | fred |\n| 2 | bob |\n\n_Italic_ **bold** \n\n`;\n\nmsg.payload = {chatId : msg.payload, type : 'message', content : message};\n\n// activate markdown\nmsg.payload.options = {\n disable_web_page_preview : true, \n parse_mode : \"Markdown\"};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1080,"y":140,"wires":[["d81e227.c23a5e"]],"info":"## New message\n\nHello *markdown* formatted messages!'\n\nwith `inline` code\n\n> and quote\n>> nested\n\n\\`\\`\\`\nvar code = \"cool\";\n\\`\\`\\`\n\n| table | data |\n|---|---|\n| 1 | fred |\n| 2 | bob |\n\n_Italic_ **bold** "},{"id":"d28c5058.bddd1","type":"inject","z":"f46565a7.143a28","name":"Trigger","repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payload":"{}","payloadType":"json","x":630,"y":140,"wires":[["dddedf65.7dd92"]]},{"id":"dddedf65.7dd92","type":"change","z":"f46565a7.143a28","name":"get chatId","rules":[{"t":"set","p":"payload","pt":"msg","to":"chatId","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":140,"wires":[["bdff64b6.c8f578"]]},{"id":"8c045307.21b2f","type":"switch","z":"f46565a7.143a28","name":"local, random, camera","property":"originalMessage.text","propertyType":"msg","rules":[{"t":"eq","v":"/volume1/docker/synology-surveillance-api-motion-mqtt-gifs/gifs","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":560,"y":300,"wires":[["52564207.c7770c"],["e4068474.c5ee08"]]},{"id":"52564207.c7770c","type":"file in","z":"f46565a7.143a28","name":"load image","filename":"","format":"","chunk":false,"sendError":false,"encoding":"none","x":850,"y":200,"wires":[["6fdfd099.932fc"]]},{"id":"e4068474.c5ee08","type":"function","z":"f46565a7.143a28","name":"Dont understand message","func":"var message = \n`\n## I dont understand 🤔\n\nPlease send \\`/pic local\\` or \\`/pic random\\`\n\n`;\n\nmsg.payload.type = 'message';\nmsg.payload.content = message;\n\n// activate markdown\nmsg.payload.options = {\n disable_web_page_preview : true, \n parse_mode : \"Markdown\"\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":960,"y":340,"wires":[["d81e227.c23a5e"]],"info":"## New message\n\nHello *markdown* formatted messages!'\n\nwith `inline` code\n\n> and quote\n>> nested\n\n\\`\\`\\`\nvar code = \"cool\";\n\\`\\`\\`\n\n| table | data |\n|---|---|\n| 1 | fred |\n| 2 | bob |\n\n_Italic_ **bold** "},{"id":"3afd91bf.63caae","type":"mqtt in","z":"f46565a7.143a28","name":"","topic":"synology/cameras/gifs/sidegate","qos":"2","datatype":"utf8","broker":"2ca7e989.0cec46","x":190,"y":560,"wires":[["8c045307.21b2f"]]},{"id":"c44f2004.86643","type":"mqtt in","z":"f46565a7.143a28","name":"","topic":"synology/cameras/gifs/kitchenside","qos":"2","datatype":"utf8","broker":"2ca7e989.0cec46","x":200,"y":500,"wires":[["8c045307.21b2f"]]},{"id":"46323f6.9f771c","type":"mqtt in","z":"f46565a7.143a28","name":"","topic":"synology/cameras/gifs/garageback","qos":"2","datatype":"utf8","broker":"2ca7e989.0cec46","x":200,"y":440,"wires":[["8c045307.21b2f"]]},{"id":"9349caa7.3808b8","type":"mqtt in","z":"f46565a7.143a28","name":"","topic":"synology/cameras/gifs/garagefront","qos":"2","datatype":"utf8","broker":"2ca7e989.0cec46","x":200,"y":380,"wires":[["8c045307.21b2f"]]},{"id":"22c6a76c.b54468","type":"mqtt in","z":"f46565a7.143a28","name":"","topic":"synology/cameras/gifs/sittingarea","qos":"2","datatype":"utf8","broker":"2ca7e989.0cec46","x":200,"y":320,"wires":[["8c045307.21b2f"]]},{"id":"ea8356ea.87f0a8","type":"telegram bot","z":"f46565a7.143a28","botname":"my_bot","usernames":"","chatids":"12345678","baseapiurl":"","updatemode":"polling","pollinterval":"","usesocks":false,"sockshost":"","socksport":"","socksusername":"","sockspassword":"","bothost":"","localbotport":"","publicbotport":"","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":false},{"id":"2ca7e989.0cec46","type":"mqtt-broker","z":"","name":"","broker":"10.0.0.50","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]