Telegram User API Trigger icon

Telegram User API Trigger

Escuta eventos da sua conta Telegram em tempo real (MTProto User API, não Bot API)

Telegram User API Trigger

AI-generated

Summary

Listen for new Telegram messages matching specified criteria and emit message details as workflow output in real time.

Inputs

  • Evento (required) — Select the type of new message event to trigger on: any message, group messages, private messages, or channel messages.
  • Filtrar por Chats — Comma-separated list of chat IDs or usernames to monitor. Leave empty to monitor all chats.
  • Filtrar por Remetentes — Comma-separated list of sender IDs or usernames to filter messages by sender. Leave empty to accept all senders.
  • Filtrar por Padrão (Regex) — Regular expression to filter messages by their text content. Leave empty to accept all message contents.
  • Incluir Mensagens Enviadas — Boolean toggle to include messages you send yourself as trigger events.

Output shape

A JSON array with one object per received message matching filters containing message identifiers, text content, sender and chat info, timestamps, media details, and engagement metrics.

The trigger only outputs when a new message event matching all selected filters occurs. It supports filtering by chat, sender, message text pattern, message type (group, private, channel), and inclusion of outgoing messages. The output object includes message ID, chat ID, sender ID, message text, sender name, chat title, date in timestamp and ISO format, booleans for group/private/channel, reply info, media presence and type, media filename and MIME type if any, views, and forwards counts. Workflow cleanup disconnects the Telegram client.

Links

Discussion