Telegram (Grammy) icon

Telegram (Grammy)

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

Actions10

File → Get

AI-generated

Summary

Retrieve Telegram metadata for a file by calling the Bot API with its file ID.

Inputs

  • Bot Token (required) — Telegram bot token; defaults to the incoming item’s access_token or token field.
  • File ID (required) — Telegram file_id from a message. The operation passes it to Telegram’s getFile method.

Output shape

A single item containing the Telegram file object as JSON.

The returned file object may include file_path and file metadata. With Continue On Fail enabled, errors are returned as an {"error": "..."} JSON object.

Links

Discussion