Giter VIP home page Giter VIP logo

broadcastchannel's Introduction

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

Platform

  1. Cloudflare
  2. Netlify
  3. Vercel

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

🏗️ Deployment

  1. Fork this project to your GitHub
  2. Create a project on Cloudflare/Netlify/Vercel
  3. Select the BroadcastChannel project and the Astro framework
  4. Configure the environment variable CHANNEL with your channel name. This is the minimal configuration, for more configurations see the options below
  5. Save and deploy
  6. Bind a domain (optional).
  7. 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

  1. 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

  1. Follow me on Telegram
  2. Follow me on 𝕏
  3. Sponsor me on GitHub

broadcastchannel's People

Contributors

ccbikai avatar stvlynn avatar mitian233 avatar eallion avatar pbnicad avatar actions-user avatar chen2438 avatar etnperlong avatar pierrenel avatar yy4382 avatar cylllllll avatar hkint avatar siygle avatar

Stargazers

Tim Seriakov avatar  avatar yu jiale avatar Hayden Chen avatar  avatar  avatar  avatar Krish avatar zhangkejiang avatar Jack Molin avatar Peter Chen avatar Huramkin avatar Ashshaosh avatar jacky avatar Eugene Klimov avatar ᴇᴍᴘᴇʀᴏʀ ᴊᴏᴋᴇʀ avatar  avatar  avatar  avatar Robert Schnell avatar Alexander Zaraysky avatar  avatar 有童yt_hy avatar Kobzar Slava avatar kklby avatar  avatar Danila Pisarev avatar Vadim Bulax avatar huyixi avatar Maksim Fominov avatar monlor avatar IceCodeNew avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar BigHippo avatar trai25 avatar  avatar CC康纳百川 avatar watson avatar  avatar lazarevtill avatar cunjieliu avatar Chong Lv avatar Chengqian Du avatar  avatar karl lao avatar  avatar Data Ng avatar Player avatar weiyidu avatar  avatar covein avatar oluceps avatar ConteMan avatar ureuerae avatar mei avatar  avatar  avatar xuxu avatar  avatar leishen avatar  avatar  avatar Loo avatar  avatar  avatar hkysxm avatar Random thoughts diary avatar JssDream avatar  avatar Jason depp avatar Yu Qiao avatar  avatar  avatar Margie J Drennon avatar  avatar  avatar  avatar  avatar  avatar Lex avatar happy avatar 天空之城 avatar Nepenthe avatar 青柠 avatar Alexey Osipenko avatar Al-Khawarizmi avatar mmm_6 avatar Tianjiu avatar  avatar mobai avatar Xiaohan Zhang avatar GEEKSHARE avatar Glucy2 avatar Milinda Brantini avatar

Watchers

Unknown avatar  avatar Yumin Gui avatar CXPLAY avatar  avatar 大脑艾瑞克 avatar

broadcastchannel's Issues

部署成功以后页面不展示频道内容

你好,首先这个项目我认为很棒,我很感兴趣,所以我尝试进行了部署,但是部署成功以后页面没有展示我在频道展示的内容,不知道哪里出了问题~

可是我尝试了好几次还是没有任何内容如果您有时间的话,通过我上面的描述,可以看出来问题出在哪里吗


更新一下:可以直接把.env.example文件改成.env以后,在里面修改配置项内容即可。

部署后空白

试了好几个公共频道,部署后都是空白,频道都符合文档要求,感觉兼容性应该是有一些问题的,望改进

希望优化多张图片显示效果

希望可以添加图片显示缩略图并点击放大的功能,就像tg显示图片那样
现在碰到多张图片的情况下会占用很大的显示空间

搜索「中文或数字」内容不一定能返回结果

虽然根据 ChatGPT 的推荐方法做了修改,但实际验证了一下并没有啥效果 😅

在自己的和他人的站点做了测试发现搜索英文的基本上没什么问题
但输入中文或数字的时候返回的结果并不理想,有时候有结果,有时候没结果,
比如下图搜索“有趣”完全没结果,或者也可以试试“8220”
image

在我自己的站点完全不返回结果

静态proxy怎么弄?

默认情况是无法加载cdn5.telesco.pe的……但是我找不到怎么弄proxy反代。

Feature Request: support slack and lark

我觉得可以增加其他的方式来发布信息,比如slack和lark,都是比较合适的

此外,我觉得可以考虑再加入一个feature:允许用户subscribe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.