mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-19 09:52:21 +08:00
feat: add radar rule for Telegram (#4478)
This commit is contained in:
@@ -1659,4 +1659,23 @@
|
||||
},
|
||||
],
|
||||
},
|
||||
't.me': {
|
||||
_name: 'Telegram',
|
||||
'.': [
|
||||
{
|
||||
title: '频道',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#telegram',
|
||||
source: '/:username',
|
||||
target: '/telegram/channel/:username',
|
||||
script: "({isChannel:document.querySelector('.tgme_action_button_label')})",
|
||||
verification: (params) => params.isChannel,
|
||||
},
|
||||
{
|
||||
title: '频道',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#telegram',
|
||||
source: '/s/:username',
|
||||
target: '/telegram/channel/:username',
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
@@ -106,7 +106,7 @@ Only for self-hosted
|
||||
|
||||
### Channel
|
||||
|
||||
<RouteEn path="/telegram/channel/:username" example="/telegram/channel/awesomeDIYgod" :paramsDesc="['channel name']">
|
||||
<RouteEn path="/telegram/channel/:username" example="/telegram/channel/awesomeDIYgod" :paramsDesc="['channel name']" radar="1">
|
||||
|
||||
::: tip
|
||||
|
||||
|
||||
@@ -376,7 +376,7 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性
|
||||
|
||||
### 频道
|
||||
|
||||
<Route author="DIYgod" example="/telegram/channel/awesomeDIYgod" path="/telegram/channel/:username" :paramsDesc="['频道 username']">
|
||||
<Route author="DIYgod" example="/telegram/channel/awesomeDIYgod" path="/telegram/channel/:username" :paramsDesc="['频道 username']" radar="1">
|
||||
|
||||
::: tip 提示
|
||||
|
||||
|
||||
Reference in New Issue
Block a user