Every 15 minutes
Announce new blog posts on Discord and Telegram
Each article you publish is posted to your Discord server and Telegram channel with its title, link and a short teaser.
- Runs
- Every 15 minutes
- Apps
- Discord, Telegram
- AI
- Optional
- Access
- Discord send messages; bot admin in Telegram channel
Send this to your assistant
Create a ClickRuntime automation: when a new post appears on my blog, send its title, link and a short AI teaser to my Discord channel and my Telegram channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A writer publishes two articles a week and has readers in both a Discord community and a Telegram channel. Sharing each post means writing two announcements by hand, and when she is busy, posts go out late or not at all, so readers miss them.
Watching the blog feed and posting every new article to both places means each post reaches the community within minutes of going live, with a teaser that gives people a reason to click.
What you get out of it
Readers hear about every post
Each article is announced in both places as soon as it is published. Nothing is missed because of a busy week.
A teaser that earns the click
A short teaser says what the article is about, which gets more readers than a bare link. If AI is not available, the post's own summary is used.
One announcement, two audiences
Discord and Telegram get the same post at the same time. You do not have to write and format it twice.
Each article is posted once
Posts already announced are remembered and skipped. Editing an old article does not announce it again.
How it works
What happens, step by step
Every 15 minutes, ClickRuntime checks your blog's feed for new posts.
Posts it has already announced are skipped.
AI writes a one or two sentence teaser for each new post. If AI is not available, the post's own summary is used.
The title, link and teaser are posted to your Discord channel and your Telegram channel.
Before it runs live
- Connect Discord
- Connect Telegram
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Discord and Telegram steps into one automation
Under the hood
The code that runs this automation
import feedparser
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched
FEED_URL = "https://yourblog.example.com/feed"
DISCORD_CHANNEL = "your-discord-channel-id"
TELEGRAM_CHAT = "@yourchannel"
@on_trigger
def run(event):
seen = set(state.get("seen") or [])
new = [e for e in feedparser.parse(http.get(FEED_URL).text).entries if e.get("id", e.link) not in seen]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
for e in reversed(new):
teaser = e.get("summary", "")[:200]
try:
teaser = ai.generate(f"Write a 1-2 sentence teaser for this article.\n{e.title}\n{teaser[:1500]}", max_output_tokens=80).text.strip()
except ai.AIError:
pass
text = f"{e.title}\n{teaser}\n{e.link}"
http.post(f"https://discord.com/api/v10/channels/{DISCORD_CHANNEL}/messages",
headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}, json={"content": text})
http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage",
json={"chat_id": TELEGRAM_CHAT, "text": text})
seen.add(e.get("id", e.link))
state.set("seen", sorted(seen)[-500:])
return {"summary": f"{len(new)} posts announced"}FAQ
Common questions
Does my blog need an RSS feed?
How long is the teaser?
What will the Telegram bot need?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Send new posts from a feed to Discord and Telegram
New posts from an account, subreddit or feed you follow appear in your Discord and Telegram channels within minutes.
See how it worksGet Discord and Telegram alerts when Notion statuses change
When an item in your Notion database changes status, a message goes to Discord and Telegram saying what moved and where.
See how it worksSend error alerts to Discord and Telegram
When a job or system fails, your team sees the details in Discord and you get them on Telegram, wherever you are.
See how it worksKeep exploring
Set up “Announce new blog posts on Discord and Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.