Telegram bot how to - (im still new)

Hi there, this tool is very exciting and im currently having fun trying it out, especially about the possibility for it to make telegram integration and chatbot

so i manage to make a simple telegram chatbot that can answer test messages

i’m a bit struggling on how can i make it to be able to answer if i send a file or image as well?

because when i send a file, the telegram trigger does not give me the file, it gives me this instead

Describe the problem/error/question

how do i get this file

What is the error message (if any)?

no error

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hi there @kingcatlite , don’t worry, i got you

so basically what you are seeing there in the output, inside the photos[ … ] is the file_id
so the process that happens when you send a file is that telegram uploads it to their server and gives you back the file_id

so in order to get the actual file, you need to download it

luckily we have an already built in node for that, and it’s something like this

and for your learning reference, i suggest for you to also try out and learn this templates also regarding telegram in n8n

it might be a bit daunting at first, especially if you are a beginner, but don’t worry, there;s a lot of other learning resource in the internet, and you have this community to answer all your question

so good luck with your journey my friend!

thank you for the warm welcome and kind energy, this helps a lot!