Telegram (Grammy) [Stage] icon

Telegram (Grammy) [Stage]

Send and manage Telegram messages, chats, and files via Grammy

Actions10

File → Get File Path

AI-generated

Summary

Retrieve the Telegram file path for a given file ID.

Inputs

  • botToken — Telegram bot token, typically passed from workflow input (e.g., {{ $json.access_token }})
  • fileId (required) — Telegram file_id of the file to retrieve path for

Output shape

object containing a file_path string

On success returns { "file_path": "" }; if an error occurs and continueOnFail is enabled the node may return { "error": "" } instead.

Examples

Example 1: Fetch path for a document stored in Telegram

resource=File, operation=Get File Path, fileId=123456789, botToken={{ $json.access_token }}

Example 2: Obtain path for a photo to forward later

resource=File, operation=Get File Path, fileId=987654321, botToken={{ $json.access_token }}

Links

Discussion