feat: clarify Telegram channel setup in docs

Improved documentation clarity on configuring Telegram channel usernames, added troubleshooting section for common deployment issues, and emphasized the necessity of public channels and correct username format to ensure successful deployment.
This commit is contained in:
ccbikai
2024-08-08 12:23:41 +08:00
parent 44a6f86830
commit 39e2ccbd8d
2 changed files with 20 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ For detailed tutorials, see [Deploy your Astro site](https://docs.astro.build/en
## ⚒️ Configuration
```env
## Telegram channel name, required
## 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)
@@ -97,6 +97,15 @@ HOST=telegram.dog
STATIC_PROXY=
```
## Frequently Asked Questions
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](https://t.me/miantiao_me)