Telegram Long Polling Trigger (Stage) icon

Telegram Long Polling Trigger (Stage)

Long polling daemon for many Telegram bots. Each bot runs its own continuous getUpdates loop and emits events to n8n immediately. Errors (e.g. 401/403) go to the second output (Error).

Telegram Long Polling Trigger (Stage)

AI-generated

Summary

Starts a long‑polling daemon for multiple Telegram bots, reading bot list from Redis and emitting update items on the main output while sending errors to the error output.

Inputs

  • interval — Supervisor interval in seconds; how often the daemon reconciles the active bot list from Redis.
  • pollTimeout — Poll timeout in seconds for each getUpdates call per bot; capped at 30 seconds.

Output shape

array of telegram update items on the main output; error items on the error output

No binary payload; success/failure only. Errors are emitted as items on the error stream.

Examples

Example 1: Default configuration runs the trigger with 5‑second supervisor interval and 25‑second poll timeout, continuously polling Telegram and emitting updates.

interval=5, pollTimeout=25

Links

Discussion