Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

File → Get File

AI-generated

Summary

Retrieve information about a specific Telegram file by its File ID, including metadata to facilitate file downloading.

Inputs

  • File ID (required) — The identifier of the file to get information about

Output shape

a single object containing file metadata and a file path for downloading

The node outputs the file information as JSON under the 'json' key of the data item. Users can extract the file_path from the response to download the file using subsequent HTTP requests.

Examples

Example 1: Get information for a file stored by the Telegram bot

Set Resource to 'File', Operation to 'Get File', and provide the required File ID.

Links

Discussion