mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-11 23:59:56 +08:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
module.exports = {
|
|
't.me': {
|
|
_name: 'Telegram',
|
|
'.': [
|
|
{
|
|
title: '频道',
|
|
docs: 'https://docs.rsshub.app/social-media.html#telegram',
|
|
source: '/:username',
|
|
target: (params, url, document) => {
|
|
const isChannel = document && document.querySelector('.tgme_action_button_label');
|
|
if (isChannel) {
|
|
return '/telegram/channel/:username';
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '频道',
|
|
docs: 'https://docs.rsshub.app/social-media.html#telegram',
|
|
source: '/s/:username',
|
|
target: '/telegram/channel/:username',
|
|
},
|
|
],
|
|
},
|
|
'telegram.org': {
|
|
_name: 'Telegram',
|
|
'.': [
|
|
{
|
|
title: 'Telegram Blog',
|
|
docs: 'https://docs.rsshub.app/social-media.html#telegram-telegram-blog',
|
|
source: '/blog',
|
|
target: '/telegram/blog',
|
|
},
|
|
],
|
|
},
|
|
};
|