I'm having trouble with the Telegram API and other services

For the past two weeks, I’ve been having an issue with N8N on my Hugging Face Space. Whenever I enter my Telegram API key, I get this error: “The connection cannot be established; this usually occurs due to an incorrect host (domain) value.” Here is my Dockerfile:

" # Use the official stable image

FROM n8nio/n8n:latest

# Switch to the root user to ensure we can modify the variables

USER root

# Set the port required by Hugging Face

ENV N8N_PORT=7860

# Force n8n not to use internal SSL because HF provides it ready-made

ENV N8N_PROTOCOL=http

# Most important step: Specify the data folder in a writable location

ENV N8N_USER_ID=1000

ENV N8N_CONFIG_FILES=/home/node/.n8n/config

# Run n8n using the default command from the official image

# This ensures that all environment paths are correctly recognized

ENTRYPOINT [“tini”, “–”, “/docker-entrypoint.sh”] "

So, is there a solution or not?

1 Like

Apparently, access to certain domains—such as the Telegram API—is intentionally blocked from Hugging Face Spaces. While a temporary workaround might be found, I expect it will eventually be patched (if possible)…

1 Like

But if I use WebhookRelay or a similar service, would that work?

1 Like

completely no idea…

1 Like