https://github.com/simonsmh/telegram-bili-feed-helper
Telegram bot for Bilibili links
https://github.com/simonsmh/telegram-bili-feed-helper
Last synced: 9 days ago
JSON representation
Telegram bot for Bilibili links
- Host: GitHub
- URL: https://github.com/simonsmh/telegram-bili-feed-helper
- Owner: simonsmh
- License: gpl-3.0
- Created: 2020-02-26T11:43:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-15T14:03:35.000Z (about 1 month ago)
- Last Synced: 2025-03-30T19:36:52.858Z (16 days ago)
- Language: Python
- Homepage:
- Size: 1010 KB
- Stars: 173
- Watchers: 2
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bilibili-extra - Telegram-bili-feed-helper - Telegram bot for Bili Feed Helper. (监控与推送 / 直播脚本)
README
# Telegram-Bili-Feed-Helper
[](https://www.python.org/)
[](https://github.com/python-telegram-bot/python-telegram-bot)Telegram bot for Bili Feed Helper.
[](https://t.me/bilifeedbot)
## License
[](https://www.gnu.org/licenses/gpl-3.0)
## Env Guide
### Official bot api
- Required: `TOKEN`: Telegram bot token
- Recommend: `REDIS_URL`: redis url string like `rediss://usr:pswd@host:port` supported by redis-py
- Supported:
- Listening on `HOST`:`PORT`
- `DATABASE_URL`: file cache db url string supported by tortoise orm
- `FILE_TABLE`: file cache db name
- `VIDEO_CODEC`: Video codec in `avc`/`hev`/`av01`### Self hosted bot api
- See Official bot api
- Extra:
- `LOCAL_MODE`: Set 1 to enable
- `API_BASE_URL`: Self hosted bot api endpoint like `http://127.0.0.1:8081/bot`
- `API_BASE_FILE_URL`: Self hosted bot api file endpoint like `http://127.0.0.1:8081/file/bot`
- `LOCAL_TEMP_FILE_PATH`: Set to docker mounting point like `/var/lib/telegram-bot-api/.tmp/`
- `VIDEO_SIZE_LIMIT`: Max video file size in bytes `2e9` by default under local mode## Credit
[Bilibili API](https://github.com/Nemo2011/bilibili-api):
- https://api.bilibili.com/x/polymer/web-dynamic/desktop/v1/detail
- https://api.bilibili.com/audio/music-service-c/songs/playing
- https://api.bilibili.com/audio/music-service-c/url
- https://api.live.bilibili.com/xlive/web-room/v1/index/getInfoByRoom
- https://api.bilibili.com/x/web-interface/view
- https://api.bilibili.com/x/player/playurl
- https://api.bilibili.com/x/v2/reply/wbi/main
- https://api.bilibili.com/pgc/view/web/season