I’m having issues using the Telegram Send and Wait for Response node in a loop in n8n (hosted on Railway). The first message works, but from the second iteration I get invalid URL errors with the webhook button.
I’ll provide screenshots for details. Looking for advice on how to handle multiple Send and Waits in one workflow.
Bad Request: inline keyboard button URL '$({RAILWAY_PUBLIC_DOMAIN/webhook-waiting/68/a7eedd69-2268-43ba-ba81-f9394a9bb523?approved=true' is invalid: Disallowed character in URL host
I don’t have to give it to any node, I think it’s generated by the Send and Wait node. It’s the link that appears under a Telegram message — the one I’m supposed to respond to.
Okay, after some testing, I think there’s a bug on your end in some special circumstances.
When the workflow runs for the second time, the Telegram node cannot get the correct webhook URL from your setting ${RAILWAY_PUBLIC_DOMAIN}, so the button url on Telegram break.
It’s working fine on my end though.
The possible cause might be Railway or something fundamental or platform level issue.