Collect trending topics from 6 platforms with one click, format them, and push them to Telegram.
Dependencies
Uses Bun runtime's built-in fetch, no additional dependencies need to be installed.
Environment variables
The following environment variables must be configured (or set in the .env file):
| Variable | Required | Description |
|---|---|---|
TELEGRAM_BOT_TOKEN |
Yes | Telegram Bot Token |
TELEGRAM_CHAT_ID |
Yes | Telegram target Chat ID |
GROK_API_KEY |
No | xAI Grok API Key (if empty, skip AI trend analysis) |
PRODUCT_HUNT_TOKEN |
No | Product Hunt API Token (if empty, skip PH) |
YOUTUBE_API_KEY |
No | YouTube Data API Key (if empty, skip YouTube) |
Execution
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
{baseDir} - Script path =
{baseDir}/scripts/main.ts - Replace all
{baseDir}in this document with the actual path - Resolve
${BUN_X}runtime: ifbuninstalled →bun; ifnpxavailable →npx -y bun; else suggest installing bun
${BUN_X} run {baseDir}/scripts/main.ts
Specify .env file path:
${BUN_X} --env-file=/path/to/.env run {baseDir}/scripts/main.ts
Dry-run mode (print only, do not send):
${BUN_X} run {baseDir}/scripts/main.ts --dry-run
Output format
Push to Telegram grouped by platform, with the top three key trends from AI analysis attached at the top (requires GROK_API_KEY to be configured):
🔥 热词速报
━━━ 🎯 三大关键趋势 ━━━
1️⃣ AI代理兴起
💡 核心观点:AI代理技术正推动自动化任务执行
📊 关键数据:GitHub BitNet 今日+2149⭐
❗ 为什么重要:降低部署成本,促进广泛应用
🔗 https://github.com/microsoft/BitNet
━━━ HuggingFace Spaces ━━━
1. microsoft/TRELLIS.2 (🔥315)
2. Qwen/Qwen-Image-Layered (🔥264)
━━━ 每日论文 ━━━
1. SWE-EVO: Benchmarking... (👍3)
━━━ Hacker News ━━━
1. Python 3.15's interpreter... (🔥102 | 💬23)
━━━ Product Hunt ━━━
1. DiffSense (🔺211)
━━━ Reddit 热帖 ━━━
1. [r/singularity] GPT-5.2 Pro... (🔺346 | 💬83)
━━━ GitHub Trending ━━━
1. rendercv/rendercv ⭐+1,797 Python
Customization
The script supports customization via environment variables:
REDDIT_SUBS- Reddit subreddit list, comma-separated (default:MachineLearning,LocalLLaMA,artificial,ChatGPT,singularity)ITEMS_PER_PLATFORM- Number of items displayed per platform (default:5)
Example
User request:
帮我发一下热词速报
Execution flow:
- Check whether environment variables are configured (TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID)
- Execute
${BUN_X} run {baseDir}/scripts/main.ts - Confirm the Telegram send result