feat: add radar rule for Telegram (#4478)

This commit is contained in:
cesaryuan
2020-04-19 18:50:38 +08:00
committed by GitHub
parent 44312f624f
commit ddcd9e36e3
3 changed files with 21 additions and 2 deletions
+19
View File
@@ -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',
},
],
},
});
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 提示