Some actions in Telegram require sending HTTP requests with API token in the url, like: https://api.telegram.org/bot<token>/getFile?file_id=<file_id>
to get the ID of the uploaded file.
Is it possible to use an expression to pass a node credentials in an expression? Hardcoding them wouldn’t be a good idea. I didn’t find any key in the list of variables.
I mean, it’s completely unclear for me, how to set such a variable. I should write somewhere text like this?
1. FROM node:lts-alpine
* # pass N8N_VERSION Argument while building or use default
2. ARG N8N_VERSION=0.98.0
* # Update everything and install needed dependencies
3. RUN apk add --update graphicsmagick tzdata
* # Set a custom user to not have n8n run as root
4. USER root
* # Install n8n and the also temporary all the packages
5. # it needs to build it correctly.
6. RUN apk --update add --virtual build-dependencies python build-base && \
Not at all. That is Jan explaining how to upload the dockerfile to test this feature. But, that’s is before this feature was generally available. Now that is available that is not needed. The only thing needed it’s to set up the env variable and then use it in the workflow. How did you deploy n8n? Or are you using n8n cloud?
Thanx. I was already expreimenting. I added a line and restarted the containers.
I might tell that the new variable is not reacheable
This is how it’s written in the .yml file:
And this is how it’s delivered:
Can you run it with the expression no matter if it’s in red? It should work. If you read below, that happened to another user, and it still works. It might be an issue with the UI resolving the value.