# \[BUG\]\[Telegram Node\] get file not found on local api server

**URL:** <https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483>\
**Category:** Questions\
**Created:** [January 14, 2025, 9:29am UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483 "2025-01-14T09:29:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abolfazlakbarzadeh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/abolfazlakbarzadeh/32/53148_2.png) [@abolfazlakbarzadeh](https://community.n8n.io/u/abolfazlakbarzadeh)\
**Post date:** [January 14, 2025, 9:29am UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483/1 "2025-01-14T09:29:36Z")

</div>

Hey there, I hope you all are well!

I have a problem with the Telegram node when I’m using the local API server for the bot, I’ve put the local API server base URL in the telegram credential, and when the get file node triggers it throws an error and saysthe file couldn’t be found! but when I’m using the telegram official API baseUrl it works fine, I think this issue comes from node implementation for the getFile method and it doesn’t use the custom telegram credential baseUrl setting, so it requests file from official server instead of local server thu it can’t found the by file\_id, or I’m wrong, however please correct me 🙂

thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 14, 2025, 9:29am UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483/2 "2025-01-14T09:29:39Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ernanda](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ernanda/32/55811_2.png) [@ernanda](https://community.n8n.io/u/ernanda)\
**Post date:** [February 1, 2025, 2:53pm UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483/3 "2025-02-01T14:53:06Z")

</div>

hi, I also got the same problems.

but first this my details :

- **n8n version:** 1.76.1
- **Database (default: SQLite):** Postgres
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** default
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** self hosted (via railway)

1. when i use getFile method on HTTP request the response has give me this json :

> [https://telegram-bot-api-production-7a1a.up.railway.app/bot73780dfxxx073:AAE9-NKrRhQWJgjAusk2WvyQsFDTSGG6QLQ/getFile?file\_id=AwACAgUAAxkBAAMDZ54v4CV9PNwvipCFrk36PxLQhcYAArQVAAJBSPBUL43eMdUUQYk2BA](https://telegram-bot-api-production-7a1a.up.railway.app/bot73780dfxxx073:AAE9-NKrRhQWJgjAusk2WvyQsFDTSGG6QLQ/getFile?file_id=AwACAgUAAxkBAAMDZ54v4CV9PNwvipCFrk36PxLQhcYAArQVAAJBSPBUL43eMdUUQYk2BA)

and returned respon are :

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/1/2/129403852521f0af0bf8f61d959260048fd8b07f.png)

1. then i put another http request to download the file using this http request command :

> [https://telegram-bot-api-production-7a1a.up.railway.app/file/bot7378xxxx3:AAE9-NKrRhQWJgjAusk2WvyQsFDTSGG6QLQ/var/lib/telegram-bot-api/7378037073:AAE9-NKrRhQWJgjAusk2WvyQsFDTSGG6QLQ/voice/file\_0.oga](https://telegram-bot-api-production-7a1a.up.railway.app/file/bot7378xxxx3:AAE9-NKrRhQWJgjAusk2WvyQsFDTSGG6QLQ/var/lib/telegram-bot-api/7378037073:AAE9-NKrRhQWJgjAusk2WvyQsFDTSGG6QLQ/voice/file_0.oga)

but the response is :

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/3/932aa2ef4d913f25d7825a5f7d7589af45bb7b8f.png)

but if u change the base url into telegram original : [api.telegram.org](http://api.telegram.org) it works fine.

do anyone have experience on this ? thanks for your support.

---

<div class="post-metadata">

**Author:** ![aya](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aya/32/194036_2.png) [@aya](https://community.n8n.io/u/aya)\
**Post date:** [February 19, 2025, 11:17am UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483/4 "2025-02-19T11:17:12Z")

</div>

Hi @ernanda, which version of n8n are you using? Which version of n8n are you using? And does your n8n instance have a proper connection to the Telegram bot server?

---

<div class="post-metadata">

**Author:** ![mavoe](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@mavoe](https://community.n8n.io/u/mavoe)\
**Post date:** [April 3, 2025, 10:20am UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483/5 "2025-04-03T10:20:38Z")

</div>

Hello,

unfortunately I have the same problem. Anybody able to help? My n8n instance have a proper connection to the local api server. Everything works fine except downloading a document.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 2, 2025, 10:21am UTC](https://community.n8n.io/t/bug-telegram-node-get-file-not-found-on-local-api-server/70483/6 "2025-07-02T10:21:38Z")

</div>

Closed on July 2, 2025, 10:21am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
