Telegram Trigger (long polling) Trigger icon

Telegram Trigger (long polling) Trigger

Starts the workflow on a Telegram update via long polling

Telegram Trigger (long polling) Trigger

AI-generated

Summary

Receive and emit Telegram updates in real-time via long polling, filtered by specified update types, chat IDs, and user IDs.

Inputs

  • Updates (required) — Select one or multiple Telegram update types to listen to, such as messages, edited messages, callback queries, polls, chat member updates, etc. Choosing '*' listens to all update types.
  • Limit — Set the maximum number of messages to retrieve in each polling request (minimum 1, default 50).
  • Timeout — Specify the timeout in seconds for each long polling request to Telegram's getUpdates endpoint (minimum 0, default 60).
  • Restrict to Chat IDs — Comma- or space-separated list of chat IDs to restrict updates to. Only updates from these chats will trigger the node.
  • Restrict to User IDs — Comma- or space-separated list of user IDs to restrict updates to. Only updates from these users will trigger the node.

Output shape

a stream of Telegram update objects matching the specified filters

The node continuously polls Telegram for new updates and emits them as individual items in the output. Updates are filtered to the selected types and further restricted to the specified chat and user IDs if provided. The polling adheres to the limit and timeout parameters for efficient update retrieval. The polling loop automatically handles transient errors with exponential backoff and stops cleanly when the workflow is stopped.

Links

Discussion