Task: RSSHubTwitter to TG V1.1

n8n workflow:
{"id":"3","name":"RssTwitter to TG V1.1","nodes":[{"name":"0","type":"n8n-nodes-base.if","position":[490,460],"parameters":{"conditions":{"number":[{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":1}]}},"typeVersion":1},{"name":"1","type":"n8n-nodes-base.if","position":[680,460],"parameters":{"conditions":{"number":[{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":2},{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","operation":"larger"}],"string":[],"boolean":[]}},"typeVersion":1},{"name":"2","type":"n8n-nodes-base.if","position":[870,460],"parameters":{"conditions":{"number":[{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":3},{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":1,"operation":"larger"}],"string":[],"boolean":[]}},"typeVersion":1},{"name":"3","type":"n8n-nodes-base.if","position":[1060,460],"parameters":{"conditions":{"number":[{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":4},{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":2,"operation":"larger"}]}},"typeVersion":1},{"name":"4","type":"n8n-nodes-base.if","position":[1250,460],"parameters":{"conditions":{"number":[{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":5},{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":3,"operation":"larger"}],"string":[],"boolean":[]}},"typeVersion":1,"alwaysOutputData":false},{"name":"On clicking 'execute'","type":"n8n-nodes-base.manualTrigger","position":[450,100],"parameters":{},"typeVersion":1},{"name":"写入图片的属性","type":"n8n-nodes-base.function","position":[760,250],"parameters":{"functionCode":"function imgList(items) {\n    for (let i = 0; i < items.length; i++) {\n        const item = items[i];\n        let imgReg = /<img.*?(?:>|\\/>)/gsi //匹配图片中的img标签\n        let srcReg = /src=[\\'\\\"]?([^\\'\\\"]*)[\\'\\\"]?/i // 匹配图片中的src\n        let str = item.json.content\n        let arr = str.match(imgReg)  //筛选出所有的img\n        let srcArr = []\n        let srcArr2 = []\n        if (arr !== null) {\n            for (let i = 0; i < arr.length; i++) {\n                let src = arr[i].match(srcReg)\n                // 获取图片地址\n                srcArr.push(src[1])\n                srcArr2.push(src[1].replace(\"&name=orig\", \"\"))\n            }\n            item.json.arrlength = arr.length;\n            item.json.imgList = srcArr;\n            item.json.imgList2 = srcArr2;\n        } else {\n            item.json.arrlength = 0;\n        }\n    }\n}\nimgList(items)\nreturn items;\n\n"},"typeVersion":1},{"name":"推送URL","type":"n8n-nodes-base.telegram","position":[490,660],"parameters":{"text":"={{$json[\"link\"]}}\n{{$json[\"title\"]}}","chatId":"TG-ID(个人、频道和群组都可以,具体@getmyid_bot 获取)","additionalFields":{}},"credentials":{"telegramApi":"你的BOT(具体@BotFather 创建)"},"notesInFlow":false,"retryOnFail":true,"typeVersion":1,"continueOnFail":true,"waitBetweenTries":5000},{"name":"发送1张图片","type":"n8n-nodes-base.telegram","position":[680,660],"parameters":{"file":"={{$node[\"1\"].json[\"imgList\"][0]}}","chatId":"TG-ID(个人、频道和群组都可以,具体@getmyid_bot 获取)","operation":"sendPhoto","additionalFields":{"caption":"={{$json[\"link\"]}}\n{{$json[\"title\"]}}"}},"credentials":{"telegramApi":"你的BOT(具体@BotFather 创建)"},"retryOnFail":true,"typeVersion":1,"continueOnFail":true,"waitBetweenTries":5000},{"name":"发送2张图片","type":"n8n-nodes-base.telegram","notes":"无图片","position":[870,660],"parameters":{"media":{"media":[{"media":"={{$node[\"2\"].json[\"imgList\"][0]}}","additionalFields":{}},{"media":"={{$json[\"imgList\"][1]}}","additionalFields":{"caption":"={{$json[\"link\"]}}\n{{$json[\"title\"]}}"}}]},"chatId":"TG-ID(个人、频道和群组都可以,具体@getmyid_bot 获取)","operation":"sendMediaGroup","additionalFields":{}},"credentials":{"telegramApi":"你的BOT(具体@BotFather 创建)"},"retryOnFail":true,"typeVersion":1,"continueOnFail":true,"waitBetweenTries":5000},{"name":"发送3张图片","type":"n8n-nodes-base.telegram","position":[1060,660],"parameters":{"media":{"media":[{"media":"={{$node[\"3\"].json[\"imgList\"][0]}}","additionalFields":{}},{"media":"={{$node[\"3\"].json[\"imgList\"][1]}}","additionalFields":{}},{"media":"={{$node[\"3\"].json[\"imgList\"][2]}}","additionalFields":{"caption":"={{$json[\"link\"]}}\n{{$json[\"title\"]}}"}}]},"chatId":"TG-ID(个人、频道和群组都可以,具体@getmyid_bot 获取)","operation":"sendMediaGroup","additionalFields":{}},"credentials":{"telegramApi":"你的BOT(具体@BotFather 创建)"},"retryOnFail":true,"typeVersion":1,"continueOnFail":true},{"name":"发送4张图片","type":"n8n-nodes-base.telegram","position":[1250,660],"parameters":{"media":{"media":[{"media":"={{$node[\"4\"].json[\"imgList\"][0]}}","additionalFields":{}},{"media":"={{$node[\"4\"].json[\"imgList\"][1]}}","additionalFields":{}},{"media":"={{$node[\"4\"].json[\"imgList\"][2]}}","additionalFields":{}},{"media":"={{$node[\"4\"].json[\"imgList\"][3]}}","additionalFields":{"caption":"={{$json[\"link\"]}}\n{{$json[\"title\"]}}"}}]},"chatId":"TG-ID(个人、频道和群组都可以,具体@getmyid_bot 获取)","operation":"sendMediaGroup","additionalFields":{}},"credentials":{"telegramApi":"你的BOT(具体@BotFather 创建)"},"retryOnFail":true,"typeVersion":1,"continueOnFail":true,"waitBetweenTries":5000},{"name":"大于4","type":"n8n-nodes-base.if","position":[1250,250],"parameters":{"conditions":{"number":[{"value1":"={{$node[\"写入图片的属性\"].json[\"arrlength\"]}}","value2":4,"operation":"larger"}]}},"typeVersion":1},{"name":"RSS Feed Read","type":"n8n-nodes-base.rssFeedRead","position":[610,250],"parameters":{"url":"=https://rsshub.app/twitter/keyword/%E5%8E%9F%E7%A5%9E%20min_faves:5%20min_retweets:5"},"typeVersion":1},{"name":"IF","type":"n8n-nodes-base.if","position":[1060,250],"parameters":{"conditions":{"string":[{"value1":"={{$node[\"AddID\"].json[\"id\"]}}","value2":"NaN","operation":"notEqual"}],"boolean":[]}},"typeVersion":1},{"name":"Cron1","type":"n8n-nodes-base.cron","position":[450,250],"parameters":{"triggerTimes":{"item":[{"mode":"everyX","unit":"minutes","value":3}]}},"typeVersion":1},{"name":"AddID","type":"n8n-nodes-base.function","position":[910,250],"parameters":{"functionCode":"// Get the global workflow static data\nconst staticData = getWorkflowStaticData('global');\n\n// Access its data\nconst lastRssId = staticData.lastRssId\n\nlet list = []\n\n\nfor (const item of $items(\"写入图片的属性\")){\n  let currentId = item.json[\"guid\"].split('/').pop()\n  if(currentId == lastRssId) break;\n  list.push({'json': {\n    'id': currentId,\n    'lastId': lastRssId,\n    'title': item.json[\"title\"],\n    'url': item.json[\"link\"],\n    'creator': item.json[\"creator\"],\n    'link': item.json[\"link\"],\n    'pubDate': item.json[\"pubDate\"],\n    'author': item.json[\"author\"],\n    'content': item.json[\"content\"],\n    'contentSnippet': item.json[\"contentSnippet\"],\n    'guid': item.json[\"guid\"],\n    'isoDate': item.json[\"isoDate\"],\n    'arrlength': item.json[\"arrlength\"],\n    'imgList': item.json[\"imgList\"],\n    'imgList2': item.json[\"imgList2\"]\n  }})\n}\n\n\n// Get the last ID from Rss Feed\nlet currentRssId = $item(0).$node[\"写入图片的属性\"].json[\"guid\"].split('/').pop()\n\n// TODO: make a loop to get all the items beyond the last saved id\nif(!lastRssId || currentRssId != lastRssId)\n{  \n  // Update its data\n  staticData.lastRssId = currentRssId;\n  \n}\nelse { list = [{'json':{'id': 'NaN', 'lastId': staticData.lastRssId }}] }\nreturn list;\n\n"},"typeVersion":1}],"active":false,"settings":{},"connections":{"0":{"main":[[{"node":"推送URL","type":"main","index":0}]]},"1":{"main":[[{"node":"发送1张图片","type":"main","index":0}]]},"2":{"main":[[{"node":"发送2张图片","type":"main","index":0}]]},"3":{"main":[[{"node":"发送3张图片","type":"main","index":0}]]},"4":{"main":[[{"node":"发送4张图片","type":"main","index":0}]]},"IF":{"main":[[{"node":"大于4","type":"main","index":0},{"node":"0","type":"main","index":0},{"node":"1","type":"main","index":0},{"node":"2","type":"main","index":0},{"node":"3","type":"main","index":0},{"node":"4","type":"main","index":0}]]},"AddID":{"main":[[{"node":"IF","type":"main","index":0}]]},"Cron1":{"main":[[{"node":"RSS Feed Read","type":"main","index":0}]]},"大于4":{"main":[[{"node":"推送URL","type":"main","index":0}]]},"RSS Feed Read":{"main":[[{"node":"写入图片的属性","type":"main","index":0}]]},"On clicking 'execute'":{"main":[[{"node":"RSS Feed Read","type":"main","index":0}]]},"写入图片的属性":{"main":[[{"node":"AddID","type":"main","index":0}]]}}}