Telegram Multi Bot
AI-generatedSummary
Route API calls to one of multiple Telegram bots based on configurable conditions, then invoke a specified Telegram Bot API method with a custom JSON request body.
Inputs
- Base URL — Telegram Bot API base URL, defaulting to https://api.telegram.org.
- Bot Tokens (required) — A list of Telegram bot tokens with optional labels; each token identifies a bot available for API calls.
- Routing Rules — An ordered list of conditions that determine which bot token to use. The first matching rule selects its corresponding bot index.
- Fallback Bot Index — The bot index to use if none of the routing rules match.
- API Method (required) — The Telegram Bot API method to call, such as sendMessage or getChat.
- JSON Body (required) — A JSON object to send as the request body with the API call, specifying parameters for the chosen API method.
Output shape
a list of JSON objects representing the Telegram API's responses for each input item, paired by item index
Returns an array with one entry per input item. Each contains the API response JSON. If a call fails and 'Continue On Fail' is enabled, includes error details instead. The bot selection is based on evaluating routing rule conditions against each item input; the first matched rule's bot is used, else the fallback bot. Errors include missing bot tokens or invalid JSON body.