Библиотека / Оповещения и уведомления
Оповещения и уведомления
Рассылка сообщений в Telegram с ограничением скорости из Google Sheets через Jitterflow
Обрабатывает подписки и отписки в Telegram (/start и /stop) в Google Sheets, затем отправляет сообщения из очереди каждые 15 минут со скоростью ниже лимитов Telegram и удаляет пользователей, заблокировавших бота.
Что делает
## 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.
Шаги
- 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.
Похожие автоматизации
Синхронизация данных и ETLСинхронизация заказов Shopify с ERP Jitterflow с проверкой подписи и оповещениями в SlackШагов: 12CRM и воронка продажОтправка лидов из Google Sheets в CRM с ограничением частоты запросов через JitterflowШагов: 12Оповещения и уведомленияМассовая рассылка сообщений Telegram из Google SheetsШагов: 5Оповещения и уведомленияЕжедневная сводка календаря в Telegram с ClaudeШагов: 8