mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 23:16:46 +00:00
793bc52f198bb14142bc981d867bb90978cbc59b
Integrate flourite for improved language detection in code blocks, replacing manual detection logic. This enhances accuracy and supports a broader range of languages for syntax highlighting. Additionally, streamline CSS inclusion for code highlighting by importing directly from the package, reducing reliance on external CDN.
BroadcastChannel
Turn your Telegram Channel into a MicroBlog.
English | 简体中文
✨ Features
- Turn your Telegram Channel into a MicroBlog
- SEO friendly
/sitemap.xml - 0 JS on the browser side
- RSS and RSS JSON
/rss.xml/rss.json
🪧 Demo
Real users
- 面条实验室
- Find Blog👁发现博客
- Memos 广场 🎪
- APPDO 数字生活指南
- 85.60×53.98卡粉订阅/提醒
- 新闻在花频道
- Charles Chin's Whisper
- PlayStation 新闻转发
- Yu's Life
- Leslie 和朋友们
- OKHK 分享
- gledos 的微型博客
- Steve Studio
- LiFePO4:沙雕吐槽
- Hotspot Hourly
- 大河马中文财经新闻分享
- _My. Tricks 🎩 Collection
- 小报童专栏精选
- Fake news
- miyi23's Geekhub资源分享
Platform
BroadcastChannel supports deployment on serverless platforms like Cloudflare, Netlify, Vercel that support Node.js SSR, or on a VPS. For detailed tutorials, see Deploy your Astro site.
🧱 Tech Stack
- Framework: Astro
- CMS: Telegram Channels
- Template: Sepia
🏗️ Deployment
- Fork this project to your GitHub
- Create a project on Cloudflare/Netlify/Vercel
- Select the
BroadcastChannelproject and theAstroframework - Configure the environment variable
CHANNELwith your channel name. This is the minimal configuration, for more configurations see the options below - Save and deploy
- Bind a domain (optional).
- Update code, refer to the official GitHub documentation Syncing a fork branch from the web UI.
⚒️ Configuration
## Telegram Channel Username, must be configured. The string of characters following t.me/
CHANNEL=miantiao_me
## Language and timezone settings, language options see [dayjs](https://github.com/iamkun/dayjs/tree/dev/src/locale)
LOCALE=en
TIMEZONE=America/New_York
## Social media usernames
TELEGRAM=ccbikai
TWITTER=ccbikai
GITHUB=ccbikai
MASTODON=mastodon.social/@Mastodon
BLUESKY=bsky.app
## The following two social media need to be URLs
DISCORD=https://DISCORD.com
PODCAST=https://PODCAST.com
## Header and footer code injection, supports HTML
FOOTER_INJECT=FOOTER_INJECT
HEADER_INJECT=HEADER_INJECT
## SEO configuration options, can prevent search engines from indexing content
NO_FOLLOW=false
NO_INDEX=false
## Sentry configuration options, collect server-side errors
SENTRY_AUTH_TOKEN=SENTRY_AUTH_TOKEN
SENTRY_DSN=SENTRY_DSN
SENTRY_PROJECT=SENTRY_PROJECT
## Telegram host name and static resource proxy, not recommended to modify
HOST=telegram.dog
STATIC_PROXY=
🙋🏻 FAQs
- Why is the content empty after deployment?
- Check if the channel is public, it must be public
- The channel username is a string, not a number
- Turn off the "Restricting Saving Content" setting in the channel
- Redeploy after modifying environment variables
- Telegram blocks public display of some sensitive channels, you can verify by visiting
https://t.me/s/channelusername.
☕ Sponsor
Languages
TypeScript
34.3%
Astro
26.2%
XSLT
19.4%
CSS
17%
JavaScript
2.5%
Other
0.6%