Skip to main content

Send Media

Sends a media file to a specified recipient on Telegram.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Client Id - The unique identifier of the Telegram client to use for this operation.
  • To - The recipient of the media (can be a username, chat ID, or other recipient identifier).
  • Media Path - The local file path to the media file to send.

How It Works

The Send Media node sends a media file to a specified recipient on Telegram. When executed, the node:

  1. Validates the provided inputs (Client Id, To, and Media Path)
  2. Checks that the media file exists and is a valid file
  3. Uses the Telegram client to send the media file to the specified recipient

Requirements

  • A valid Telegram client session with appropriate permissions
  • Valid recipient identifier
  • Valid local file path to a media file that exists
  • Client Id must match an existing Telegram client session

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Client Id
  • Empty or invalid recipient identifier
  • Empty or invalid Media Path
  • Media Path does not exist
  • Media Path is not a file

Usage Notes

  • The To parameter can accept various identifiers such as usernames, chat IDs, or other recipient references
  • The Media Path should point to a valid media file (image, video, document, etc.)
  • Supported media types depend on Telegram's capabilities
  • The Client Id must correspond to an active Telegram client session