Is It Possible to Send Google Docs to Telegram via n8n?

Hi everyone,

I’m working on an n8n workflow where:

  1. The trigger is a Telegram message.
  2. An AI agent generates content.
  3. The content is saved as a Google Docs document.
  4. The Google Docs file is downloaded from Google Drive.
  5. The downloaded file is sent back to Telegram.

Here’s the flow I’m trying to achieve:
Telegram (Trigger) → AI Agent → Google Docs (Create Document) → Google Drive (Download File) → Telegram (Send File).

My questions are:

  1. Is it possible to download a Google Docs file from Google Drive in n8n? If so, how?
  2. Can the downloaded file be sent directly to Telegram as a document?
  3. Are there any specific configurations or nodes I should use to make this flow work?

I’d appreciate any guidance or examples on how to implement this workflow. Thank you in advance for your help!

Information on your n8n setup

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

Hi @Moses_Irvan
Yes you can do it with the Telegram Send Document node by enabling the binary data toggle switch

However when downloading the file you will probably need to use the Google file conversion option to convert the file to to MSWord, PDF etc to let people open in on their devices.

The default google docs format is actually a directory of many .xml files and not suitable for opening in other apps:

Here is an example workflow that works for me:

1 Like

Hi @Ventsislav_Minev,

Thank you for the solution! It works!

However, I’m wondering why it doesn’t work when I convert the docs to PDF, send it to Telegram, and open it.

Any advice to solve this issue? Thanks in advance!

1 Like

Hi @Moses_Irvan
Happy to hear it worked.

It looks like the app you are trying to open the PDF with is trying to use the default encoding of your Windows, which is Western European (Windows),

As far as I know Google Docs files are encoded in Unicode (UTF-8)

You can try to select the Other encoding option and find Unicode (UTF-8) in the list or try using a different application like Adobe Acrobat Reader or Foxit PDF reader to open the file.

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