Telegram Multi icon

Telegram Multi

Send messages and interact with multiple Telegram bots

Actions7

Photo → Send

AI-generated

Overview

This node sends a photo message to a specified Telegram chat using a Telegram bot. It supports multiple authentication methods for the bot token, including encrypted credentials, environment variables, and direct input. Users provide the chat ID and the photo URL or file ID, along with optional additional fields such as caption, parse mode, and notification settings. This node is useful for automating the sending of images to Telegram channels, groups, or individual chats, for example, sharing promotional images, alerts, or updates.

Use Case Examples

  1. Sending a promotional photo to a Telegram channel using a bot token stored in environment variables.
  2. Automatically sending a photo alert to a group chat when a specific event occurs in an application.

Properties

Name Meaning
Authentication Method Choose how to provide the bot token (encrypted credentials, environment variable, or direct input).
Environment Token Environment variable containing the bot token, shown only if authentication method is environment.
Bot Token Bot token from @BotFather, shown only if authentication method is direct input.
Chat ID Chat ID, username (@channel) or group ID (-123456789) where the photo will be sent.
Photo Photo URL or file_id to send.
Additional Fields Optional fields to customize the message, such as parse mode, caption, disabling web page preview, disabling notification, and replying to a specific message.

Output

JSON

  • json
    • message_id - ID of the sent photo message.
    • chat - Information about the chat where the photo was sent.
    • photo - Details of the photo sent, including file information.

Dependencies

  • Telegram Bot API

Troubleshooting

  • Ensure the bot token is valid and correctly formatted; invalid tokens will cause errors.
  • Verify the chat ID is correct and the bot has permission to send messages to the chat.
  • If using environment variables for the token, ensure the environment variable is properly set and accessible.
  • Check the photo URL or file_id is valid and accessible by Telegram.
  • Common error messages include 'Invalid bot token format' and 'Bot token is required', which indicate authentication issues.

Links

Discussion