Commit Graph
90 Commits
Author SHA1 Message Date
DIYgod 2dce2e32dd feat: docs sorting and auto popular 2025-05-31 17:10:01 +08:00
Tony a5e2e295dc refactor: fix all get to toArray (#19000)
* refactor: fix all get

* fix(utils/common-config): charset case compare

* Revert "fix(utils/common-config): charset case compare"

This reverts commit 3c1880f2fad53ad2cafddcee7741390fd46fa3d2.

* fix: nga

* fix: notateslaapp

* fix: ps

* fix: xjtu

* fix: enforce error on restricted syntax for get calls

* fix: eslint

* fix: more eslint
2025-05-04 05:24:53 +08:00
Tony 03969f3867 refactor: fix lint issue (#18963)
* fix: unicorn/no-empty-file

* fix: unicorn/prefer-node-protocol

* fix: unicorn/prefer-number-properties

* fix: unicorn/consistent-destructuring

* fix: unicorn/no-array-callback-reference

* fix: unicorn/new-for-builtins

* fix: set checkNaN to false in unicorn/prefer-number-properties

* fix: unicorn/prefer-string-slice

* fix: update eslint ignore
2025-04-29 03:00:16 +08:00
Tony 4b0215d29d fix(route/telegram): fix import style (#18926) 2025-04-23 18:54:26 +08:00
DIYgod 83e701b592 feat: compile ts through tsdown (#18908)
* feat: build ts via tsdown

* feat: exec tsdown

* fix

* fix

* fix

* feat: use tsdown shims

* chore: run rolldown lifecycle script

* fix: use shims

---------
2025-04-22 22:29:11 +08:00
Stephen Zhou cc60fa813b fix(route): first line as title for telegram channel (#18800) 2025-04-08 23:09:21 +08:00
Tony 43eb93acb2 feat(telegram): preview sticker (#18682)
* feat(route): preview sticker

* fix: typo
2025-03-24 23:20:24 +08:00
dependabot[bot]andTony 8a0efc0ba2 chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0 (#18392)
* chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 56.0.1 to 57.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v56.0.1...v57.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove unicorn plugin

* style: fix eslint issues

* style: fix more issues

* chore: flat config unicorn

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2025-02-19 05:10:11 +08:00
Tony 04a3e88448 docs: fix admonitions syntax (#18018) 2025-01-01 15:52:40 +08:00
pseudoyu fa1dcc56b5 chore(route): add more popular routes 2024-11-26 12:06:40 +08:00
Tony 566d3d0201 fix(route/telegram): improve typing 2024-11-09 21:07:53 +08:00
Tony 7bec9c51f4 chore(telegram): replace debug with winston 2024-11-09 20:32:42 +08:00
Tony 50533bc758 docs: add back maintainer in #13255 2024-11-09 20:03:35 +08:00
pseudoyu b4fece47ed feat(route/telegram): add mtproxy support for tglib 2024-11-05 12:58:58 +07:00
pseudoyu 56d4c5e4e7 refactor(route/telegram): use log instead of console to resolve eslint issue 2024-11-02 19:38:16 +07:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
pseudoyu b0aba0f05a fix(route/telegram): only use tglib as fallback 2024-11-01 02:22:19 +07:00
pseudoyu 0d3a6dc589 fix(route/telegram): use tglib when no routeParams 2024-11-01 02:18:35 +07:00
pseudoyu 24e8c1e0c8 fix(route/telegram): null username from telegram api 2024-10-28 17:50:42 +07:00
pseudoyu 60f432766b docs(route/telegram): add docs for telegram session 2024-10-27 21:44:47 +07:00
pseudoyu 26bc26a3b8 feat(route/telegram): add telegram session scripts and logics 2024-10-27 21:37:37 +07:00
pseudoyu a19dc7df73 refactor(route/telegram): use ofetch in telegram routes 2024-10-25 17:07:21 +08:00
DIYgod 0a049c1ded docs: more popular items 2024-09-17 16:30:18 +08:00
Rongrong b24beaa2b6 fix(route/telegram/channel): invisible images in albums and Link Preview (#16523)
Some have reported that a recent upgrade of RSSHub broke the
/telegram/channel route, resulting in images from Link Preview (Instant
View) or albums not being displayed, even when showLinkPreview
explicitly or implicitly (by default) enabled.

This is a REGRESSION introduced in
edfaed1b7d.

The patch fixes it.

Signed-off-by: Rongrong <i@rong.moe>
2024-08-24 20:08:22 +08:00
DIYgod edfaed1b7d feat: add width and height to img 2024-08-07 23:07:12 +08:00
DIYgod 703e46de70 feat: add view 2024-07-23 15:14:21 +08:00
DIYgod 9020861509 feat: update examples 2024-07-22 13:24:26 +08:00
equt 9c22718ffb doc(route): fix incorrect MD syntax (#16040) 2024-06-30 10:00:28 +08:00
DIYgod a1322b845d feat: clear popular docs 2024-06-27 03:24:02 +08:00
DIYgod 6ee5d7267b chore: add popular category 2024-05-19 23:00:43 +08:00
Rongrong 1de0c62bdf feat(route/telegram/channel): allow trimming hyperlinks from hashtags (#15535)
Signed-off-by: Rongrong <i@rong.moe>
2024-05-10 03:03:59 +08:00
Rongrong 690e91c59d fix(route/{telegram/channel,wechat/tgchannel}): broken links (#15332)
route/telegram/channel:
Since 2024/4/20, t.me/s/ mistakenly have every '&' in **hyperlinks**
replaced by '&amp;'. The characteristic of a hyperlink is [onclick]
(pop-up confirmation), which is not present in ordinary links. This is a
workaround to fix the issue until Telegram fixes it.

route/wechat/tgchannel:
Since 2024/4/20, t.me/s/ mistakenly have every '&' in **hyperlinks**
replaced by '&amp;'. wechat-mp will take care of this, so no need to fix
it here. However, once the bug is eventually fixed, all guid will be
changed again. Considering that this is almost certain to happen, let's
break guid consistency now by using normalized URL from wechat-mp as
guid to avoid similar issues in the future.

Signed-off-by: Rongrong <i@rong.moe>
2024-04-23 21:22:19 +08:00
DIYgod 79fcce2729 feat: add ConfigNotFoundError and InvalidParameterError 2024-04-07 17:36:18 +08:00
Tony 0893debb07 style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
wudifeixue c086c62acd fix(core): fix documentation link path and error message links (#15023)
* fix: all broken sponsor links

* fix: all broken deployment links

* fix: other broken links
2024-03-30 08:12:12 +00:00
DIYgod 18f50bb4da fix: remove require.main 2024-03-24 21:11:38 +08:00
Tony e8b0d7d262 chore: push type changes to docs 2024-03-24 13:14:41 +08:00
Tony acb25bf3a6 fix: don't start TG client unless routes are requested
cherry-pick bec5b6e0d6f8ac8e5783812ca935b57d3b4991a8 from #14675
2024-03-19 05:29:20 +00:00
Nikita Artikhovich a555b1799b feat(route)(telegram/channel): support for video stickers (#14842) 2024-03-19 10:53:47 +08:00
Tony d585a87daf fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00
Serhii Hospodarchuk 430c0f30b1 fix(route): telegram parameters showReplyTo and showViaBot (#14744) 2024-03-11 23:09:34 +08:00
DIYgod d83c85a349 feat: remove radar.ts maintainer.ts router.ts 2024-03-09 18:31:48 +08:00
DIYgod 33e2f17055 fix: wrong categories 2024-03-09 15:08:34 +08:00
DIYgod 76e7e8296b fix: add routes 2024-03-09 03:24:53 +08:00
DIYgod 45f9ea21fb feat: add routes 2024-03-09 03:06:53 +08:00
DIYgod f8b141ee6e feat: add namespace.ts 2024-03-09 01:53:22 +08:00
DIYgod 44c9853541 feat: replace require with import 7/n 2024-03-07 01:17:21 +08:00
DIYgod 3d33ab1f72 feat: replace require with import 6/n 2024-03-07 00:46:47 +08:00
DIYgod 156b58d780 feat: replace require with import 1/n 2024-03-06 23:39:15 +08:00
Yufan You 130b11224e chore: remove @ts-nocheck (#14669) 2024-03-05 21:06:03 +08:00