{"id":21757818,"url":"https://github.com/sanwebinfo/telegram-n8n-proxy","last_synced_at":"2026-02-07T20:32:17.745Z","repository":{"id":243713911,"uuid":"813201242","full_name":"sanwebinfo/telegram-n8n-proxy","owner":"sanwebinfo","description":"A Simple PHP proxy to bypass IPv6 related error in n8n.","archived":false,"fork":false,"pushed_at":"2024-06-10T16:59:44.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T07:08:04.171Z","etag":null,"topics":["api","json","n8n","n8n-proxy","php","proxy","proxy-server","telegram","telegram-bot","telegram-proxy","telegram-webhook"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanwebinfo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-10T16:59:12.000Z","updated_at":"2025-01-19T06:25:17.000Z","dependencies_parsed_at":"2024-06-10T21:09:45.973Z","dependency_job_id":null,"html_url":"https://github.com/sanwebinfo/telegram-n8n-proxy","commit_stats":null,"previous_names":["sanwebinfo/telegram-n8n-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanwebinfo/telegram-n8n-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Ftelegram-n8n-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Ftelegram-n8n-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Ftelegram-n8n-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Ftelegram-n8n-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanwebinfo","download_url":"https://codeload.github.com/sanwebinfo/telegram-n8n-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Ftelegram-n8n-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29208161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T20:13:33.422Z","status":"ssl_error","status_checked_at":"2026-02-07T20:13:31.455Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","json","n8n","n8n-proxy","php","proxy","proxy-server","telegram","telegram-bot","telegram-proxy","telegram-webhook"],"created_at":"2024-11-26T11:17:12.862Z","updated_at":"2026-02-07T20:32:17.722Z","avatar_url":"https://github.com/sanwebinfo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram n8n Proxy\n\nA Simple PHP proxy to bypass IPv6 related error in n8n.\n\n```sh\nCan’t connect to Telegram - EHOSTUNREACH\n```\n\n```sh\n\nconnect EHOSTUNREACH IPV6:443 (connect EHOSTUNREACH IPV6:443)\nExecution Error.\n\nError stack:\n\nNodeApiError: connect EHOSTUNREACH IPV6:443\n    at Object.apiRequest (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Telegram/GenericFunctions.ts:179:9)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at Object.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Telegram/Telegram.node.ts:2003:21)\n    at Workflow.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1269:19)\n    at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:952:29\n\n```\n\n## n8n Telegram Base URL Proxy\n\nThe issue mentioned above arose because the Telegram webhook only resolves IPv4 addresses, while most Linux machines support IPv6. Consequently, the connection to the Telegram webhook failed when attempted via n8n due to the inability to resolve IPv6 addresses.  \n\nFor certain reasons, disabling IPv6 entirely is not an option for me. Later on, I came up with the idea of using a proxy to resolve the Telegram API URL.  \n\n- `tgproxy.php` just download and host it on your PHP enabled server\n- Goto Credentials \u003e Telegram API \u003e Base URL \u003e Update default URL to  `https://proxysite.com/tgproxy.php?url=https://api.telegram.org`  \n- after update the URL you can see the `Connection tested successfully` Message\n- Now all Telegram related services workout without `EHOSTUNREACH` Errors\n\n## Proxy for only Sending Messages\n\n- `telegram.php` this proxy for only send messages and other POST related activities \u003e \u003chttps://core.telegram.org/bots/api#sendmessage\u003e\n- cURL examples\n\n```sh\ncurl -G 'https://proxysite.com/telegram.php' --data-urlencode 'url=https://api.telegram.org/bot\u003cYour Bot token\u003e/sendMessage?chat_id=\u003cChat ID\u003e\u0026text=Hello%2C%20World!'\n```\n\n```sh\ncurl -X POST 'https://proxysite.com/telegram.php' -H \"Content-Type: application/json\" -d '{\n  \"url\": \"https://api.telegram.org/bot\u003cYour Bot token\u003e/sendMessage\",\n  \"data\": {\n    \"chat_id\": \"\u003cChat ID\u003e\",\n    \"text\": \"Hello, World!\"\n  }\n}'\n```\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanwebinfo%2Ftelegram-n8n-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanwebinfo%2Ftelegram-n8n-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanwebinfo%2Ftelegram-n8n-proxy/lists"}