Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node sends a group of media items (photos or videos) as an album to a specified Telegram chat. It is useful for scenarios where you want to share multiple media files together in a single message, such as photo albums, video collections, or mixed media groups. For example, a user can send a set of vacation photos or a series of promotional videos to a Telegram channel or group chat.
Use Case Examples
- Sending a group of photos from a marketing campaign to a Telegram channel.
- Sharing multiple videos from an event to a group chat on Telegram.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username where the media group will be sent. |
| Media | Collection of media items to send, each with type (photo or video), media file identifier or URL, and optional caption and parse mode. |
| Additional Fields | Optional parameters to customize the media group message, such as caption, parse mode, disable notification, message thread ID, and custom JSON fields for advanced Telegram API options. |
| Wait for Response | Whether to wait for a response from the user after sending the media group. |
| Timeout | Timeout in seconds to wait for a response if 'Wait for Response' is enabled. |
Output
JSON
json- The JSON response from the Telegram API after sending the media group.
Dependencies
- Telegram API with an API key credential
Troubleshooting
- Ensure the chat ID is correct and the bot has permission to send messages to the chat.
- Verify that media files exist on Telegram servers or are accessible via HTTP URLs.
- If sending binary data, ensure the binary property contains a valid file name and MIME type.
- Check that the media array is not empty and each media item has a valid type and media file identifier or URL.
- If waiting for a response, ensure the timeout is set appropriately to avoid premature timeout errors.
Links
- Telegram Bot API - sendMediaGroup - Official Telegram API documentation for sending a group of media messages as an album.