Library / Alerts & Notifications
Alerts & Notifications
Broadcast throttled Telegram messages from Google Sheets via Jitterflow
Handles Telegram /start and /stop subscriptions in Google Sheets, then sends queued broadcasts every 15 minutes at a rate under Telegram limits and removes blocked users.
What it does
## Broadcast Telegram messages to Google Sheets subscribers with rate limiting and blocked-user cleanup ### Who's it for Creators, shops and communities that send updates through a Telegram bot. Telegram limits bots to about 30 messages a second, so looping over 2,000 subscribers in n8n hits 429 errors and some people never get the message. ### How it works 1. People send /start or /stop to your bot. The top lane saves them in the Subscribers tab and replies. 2. To broadcast, add a row to the Broadcasts tab and set its Status to Ready. Every 15 minutes the middle lane picks it up, checks its length and marks it Sending. 3. Queue message for subscriber hands one message per subscriber to Jitterflow, which delivers them at a steady pace, with retries. The key tg- - means nobody gets a broadcast twice, even when a run repeats. 4. The row is marked Sent with the subscriber count. 5. Each morning, the bottom lane reads Jitterflow's dead-letter queue (DLQ), marks people who blocked the bot so they're skipped next time, and clears those entries. ### Requirements - A Telegram bot token from @BotFather. Keep it private: anyone with it controls the bot. If it leaks, send /revoke to @BotFather, then paste the new token into the Jitterflow endpoint and the Telegram credential. - A Jitterflow account and API key. The free Developer plan works. - The n8n-nodes-jitterflow community node. It is verified by n8n, so it's available on n8n Cloud; on self-hosted n8n, install it from Settings → Community Nodes. ### How to set up 1. In Jitterflow, add an endpoint with the destination URL https://api.telegram.org/bot /sendMessage, a pace of 5 a second or slower, and 2 retries. 2. Select a Telegram credential with the same token on the trigger and the three reply nodes. 3. Select a Jitterflow API credential on the three Jitterflow nodes and paste the endpoint key into Endpoint Key. 4. Make a sheet with a Subscribers tab (Chat ID, Name, Username, Status, Subscribed at, Note) and a Broadcasts tab (Message, Status, Broadcast ID, Sent at, Note). Select it on all eight Google Sheets nodes, then activate. ### How to customize - Edit the bot's replies in Bot replies. - Add parse_mode: 'HTML' to the payload to format messages.
The steps
- When someone messages the bot
- Bot replies
- Which command?
- Save subscriber
- Reply: subscribed
- Mark unsubscribed
- Reply: unsubscribed
- Reply: how to subscribe
- Every 15 minutes
- Read broadcasts
- Ready to send
- One broadcast per run
- Prepare broadcast
- Message fits Telegram?
27 steps in total.
Similar automations
Alerts & NotificationsBroadcast WhatsApp Messages from a Google Sheet7 stepsAlerts & NotificationsSend Bulk WhatsApp Messages from Sheets via Unofficial API7 stepsAlerts & NotificationsSend an SMS for RabbitMQ Queue Messages with Vonage4 stepsAlerts & NotificationsSend SMS with Vonage from RabbitMQ Messages5 steps