Telegram Advance Webhook icon

Telegram Advance Webhook

Send Telegram messages and media, download files, or wait for a response delivered via webhook

Send and Wait for Response

AI-generated

Summary

Send a Telegram message (text or media) and wait for a user response (approval, checkbox selection, choice, linked list item, radio button selection, or free text). The node holds the workflow execution open until a response is received through an active Telegram Advance Webhook Trigger on the same bot or the wait limit expires. In n8n queue mode, Redis must be configured in the credentials to ensure the response reaches the correct worker. On successful response, returns the user's selection or text; on timeout, either returns a timeout item or throws an error based on the 'On Timeout' setting.

Inputs

  • Chat ID (required) — Target Telegram chat ID
  • Question (required) — Message shown to the Telegram user (text or media caption)
  • Question Content (required) — Whether the question is sent as text or as a media caption
  • Response Type (required) — Type of response to wait for: approval, checkbox, choice, linked list, radio, or text
  • Wait Limit Amount — How long to wait for a response (default 5)
  • Wait Limit Unit — Unit for wait amount: minutes, hours, or days (default minutes)
  • On Timeout — Action on timeout: return a timeout item or throw an error (default return)

Output shape

On success: returns an object with the user's response (type, value, label, etc.). On timeout (if configured to return): returns an object with timedOut flag and the question message ID. On error: throws an exception.

The node requires an active Telegram Advance Webhook Trigger on the same bot to receive the response. In queue mode, Redis credentials must be configured to ensure cross-worker communication.

Links

Discussion