RSSHub/lib
Aleksandr Bogdanov 1badc67a6a
feat(route): Telegram Channels (with video and files) (#13255)
* add tg via client library for full-res video + photo support

* fix expiring links

* fix photo downloads

* add inline thumbnails

* document thumbnails + streaming cache lock workaround

* true streaming support via Range requests

* add radar rules

* parse entities in messages to html

* tune chunking for video downloads

* add CLI option to generate TG_SESSION

* update pnpm-lock.yaml

* update telegram

* fix console usages

* remove unnecessary comment

* add english docs

* respond to review comments

* update pnpm-lock.yaml

* fix linting

* backwards compatibility for routeParams

* fix linting

* tune requestSize for smoother streaming

* fix incorrect tail post handling

* fix apiId env var bug

* html.unparse must be called on stripped text, not source markdown

* fix video streaming (requestSize is raw TL `limit`, chunkSize auto-aligns offsets by gramjs)

* replace newlines with <br> in messages because unparse doesn't do that

* must be replaceAll \n to <br/>

* Apply suggestions from code review

avoid unnecessarily starting gramjs

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* docs: fix docs

* fix import core router

* docs: fix docs merge

* fix: eslint

* fix: guard media access with key

* docs: fix maintainer

* chore: fix pnpm @babel/*

---------

Co-authored-by: syn <syn@localhost.localdomain>
2024-02-29 10:00:28 +08:00
..
errors
middleware fix: replace weibo a href img (#14354) 2024-02-01 10:20:39 +08:00
routes feat(route/pcr/news): Fetch full text (#14559) 2024-02-28 02:39:33 +08:00
static
utils style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
v2 feat(route): Telegram Channels (with video and files) (#13255) 2024-02-29 10:00:28 +08:00
views style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
api-router.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
app.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
config.js feat(route): Telegram Channels (with video and files) (#13255) 2024-02-29 10:00:28 +08:00
core-router.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
favicon.png
index.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
maintainer.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
pkg.js
protected-router.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
radar-rules.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
radar.js style(eslint): add eslint-unicorn (#14257) 2024-01-18 20:43:40 +08:00
router.js feat(route/pcr/news): Fetch full text (#14559) 2024-02-28 02:39:33 +08:00
v2router.js