How to get Telegram voice data?

Hi, how can i get the base64 version of a voice message ?
I’m arrived to get telegram file resource:


[
{
"ok": 
true,
"result": 
{
"file_id": 
"AwACAgQAAxkBAAIFKWfPCSN82kPw7sqAG-_9E6z9orxgAALRHwAC0Tl4Uj7NUibkOW-wNgQ",
"file_unique_id": 
"AgAD0R8AAtE5eFI",
"file_size": 
28950,
"file_path": 
"voice/file_1.oga"
}
}
]

but now I need the base64 version.
How ?

Thanks

Information on your n8n setup

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

Hey @Michel_Morelli - You can do it like this:

1 Like

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