Telegram Orchestrator (Stage) icon

Telegram Orchestrator (Stage)

Get bots from Strapi, check Redis for active polling, enqueue new bots for long polling

Telegram Orchestrator (Stage)

AI-generated

Summary

Orchestrates Telegram bots by reconciling the Strapi bot list with Redis poll status and enqueuing missing or inactive bots.

Inputs

  • collectionPath — REST path for bots collection (e.g. /api/bots)
  • outputProcessed — Whether to output list of processed bots (ignored / enqueued)

Output shape

an array of objects each containing a json field with the action result and a pairedItem field linking to the input item

When outputProcessed is false the json field is empty and pairedItem maps to the input item index; when true json contains action details such as 'enqueued', 'ignored', or 'removed'

Examples

Example 1: Standard execution using default collection path and output processed bots enabled

collectionPath = /api/bots, outputProcessed = true, credentials set (strapiApiStage, redisStage)

Example 2: Run without emitting processed bot list

collectionPath = /api/bots, outputProcessed = false

Links

Discussion