telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.43k stars 5.25k forks source link

[Question] Converting Telegram Channel Link to RSS #1640

Closed Sh4d0wHunt3rX closed 8 years ago

Sh4d0wHunt3rX commented 8 years ago

Hi Is it possible to make a feature to convert the telegram channel link into RSS link which let us also follow it by RSS reader?

Thanks

MasterGroosha commented 8 years ago

That's an awesome idea (IMO) Right now it's definetely possible with third-party bots or services. For example, if you use bot to post messages to channel, you can also write code to form RSS feed.

And thanks for the idea, will try this tomorrow ;)

Sh4d0wHunt3rX commented 8 years ago

@Kondra007 Thank you so much kondra :+1:

Sh4d0wHunt3rX commented 8 years ago

@Kondra007 Did you achieve any results on this? It would be great if we can follow channels in RSS readers instead of telegram itself, because the UI is not so good for following too many channels, bots, people, groups.

Thanks

thob commented 8 years ago

:+1:

MasterGroosha commented 8 years ago

@amiremami Yeah, there're some positive results, however it's not a public service, so channels owners should do some modifications to their bots, which post to those channels.

Sh4d0wHunt3rX commented 8 years ago

Cool man, thanks :+1:

MasterGroosha commented 8 years ago

@amiremami Here's a simple concept. Works fine for me, but it's still in development. https://github.com/Kondra007/telegram-rss-generation

(Telegram Devs: Sorry for offtop, can't notify this user another way)

Sh4d0wHunt3rX commented 8 years ago

@Kondra007 That's great that you made it, but unfortunately I don't have enough knowledge to work with these stuff. But I really appreciate your time and help :) I expected maybe telegram add this and let us converting telegram channels to RSS by adding /feed at the end of the channel links. But thanks anyway man :)

thob commented 8 years ago

is it possible to get the RSS from the channel only - for if you don't use a bot?

MasterGroosha commented 8 years ago

@thob There's no such feature in Telegram API (and possibly this won't ever happen, but who knows)

stek29 commented 8 years ago

Why is this still open? :)

maltsev commented 7 years ago

Still, there is no easy solution, so I created that integration myself: https://notifier.in/integrations/telegram-channel-to-rss You can use it as a service, no need to install anything.

Sh4d0wHunt3rX commented 7 years ago

@maltsev Hey man, this is great, thanks for this app! I think it has a bug which I emailed you.

Nakilon commented 6 years ago

RSS by default always was free to read anonymously. The purpose of Telegram channels is to deanonymise readers. Using signed requests to third-party service that you use to read multiple channels from one account is giving much more data to dataminers. And @maltsev wants you to even pay for that. Make the service free and put a donation button, since I'm unable to find such.

hillerliao commented 6 years ago

rsshub supports it. https://docs.rsshub.app/en/#telegram

dimqua commented 6 years ago

@hillerliao "Bot initialization required".

squromiv commented 5 years ago

If somebody has some skills in programming (I have not), it`s will not require much time. The easiest way - to unite ready solutions: pyrogram (https://github.com/pyrogram/pyrogram) and feedgen (https://github.com/lkiesow/python-feedgen).

One person I turned to, created a small program on Python language in about 10 minutes, basing on these two instruments. Basically, It is able to generate RSS from telegram channel without "adding bots". But he said, that he will not finalize that for free.

So, if someone wants to do a good deed, I can share existing code.

r78spb commented 5 years ago

https://twitter.com/spb_nord удалось невозможное сделать rss из канала telegram

технология ссылка канала типа https://t.me/severnygorod преобразуется в https://t.me/s/severnygorod ссылка скармливается например feed43.com и вот результат https://feed43.com/2115614740420341.xml

Nakilon commented 5 years ago

@r78spb did you have to authorize in feed43 (make an account there) to get the final link? UPD: hmmm, I guess not. Then it's excellent! You only have these limitations: image so it will overflow on more than 20 items per 6 hours.

r78spb commented 5 years ago

в телеграм канале редко больше 20 записей новых появляется за 6 часов, ну и конечно если без регистрации создаешь rss бесплатно, то внизу подпись "delivered by feed43.." но как рабочий инструмент годится в личное пользование

r78spb commented 5 years ago

нет, авторизоваться не надо22.05.2019, 16:00, "Victor Maslov" notifications@github.com:@r78spb did you have to authorize in feed43 (make an account there) to get the final link?

dimqua commented 5 years ago

Можно задействовать RSS-Bridge, например, чтобы парсить содержимое, нужно только бридж у нему написать.

squromiv commented 5 years ago

@r78spb А откуда вы узнали про эти ссылки типа "https://t.me/s/"? Давно такая возможность появилась? Где подробнее можно про это почитать?

r78spb commented 5 years ago

несколько дней назад увидел новость о том, что телеграм реализовал режим предпросмотра канала, посмотрел как он работает, увидел, что это можно использовать --------------------20:55, 22 мая 2019 г., squromiv notifications@github.com А откуда вы узнали про эти ссылки типа https://t.me**/s/**? Давно такая возможность появилась? Где подробнее можно про это почитать?

squromiv commented 5 years ago

@r78spb Можете ссылку на новость дать? На официальном сайте у них вроде ничего не было.

patrickdrd commented 5 years ago

I didn't understand either, what's the link to input in feed43? after that I know, I'm using feed43 for a while already

r78spb commented 5 years ago

https://www.searchengines.ru/telegram-web.html

r78spb commented 5 years ago

ссылка канала типа https://t.me/severnygorod преобразуется в https://t.me/s/severnygorod

т.е. берете ссылку на канал и вставляете s/ перед именем канала вроде понятно же feed43

RememberTheAir commented 5 years ago

Interesting conversation

patrickdrd commented 5 years ago

and this should be the code

<div class="tgme_widget_message_text js-message_text" dir="auto">{%}<div class="tgme_widget_message_footer compact js-message_footer">

r78spb commented 5 years ago

есть разница между каналом и чатом AdGuard Chat - это чат, и для https://t.me/adguard_en этот метод не сработает

по поводу кода, у меня такой <div class="tgme_widget_message_text js-message_text" dir="auto">{%}<{*}href="{%}"{*}<div class="link_preview_description" dir="auto">{%}</div>{*}<a class="tgme_widget_message_date" href="{%}"

patrickdrd commented 5 years ago

yeah, I understood the difference, that's why I deleted the message, also, thanks for the code, yours is much neater :)

patrickdrd commented 5 years ago

actually no, your code doesn't work in all, check this one: https://t.me/s/DroidApks

also, it returns nothing on: https://t.me/s/desktop

r78spb commented 5 years ago

экспериментируйте например для droidapks

<div class="tgme_widget_message_author">{*}<span dir="auto">{%}</span>{*}<div class="tgme_widget_message_text js-message_text" dir="auto">{%}</div>{*}<a class="tgme_widget_message_date" href="{%}">{*}<time datetime="{%}T{%}+00:00">

https://feed43.com/3661215818631638.xml

patrickdrd commented 5 years ago

so each one needs its own? I thought that there could be a generic pattern

anyway, this one doesn't work properly for me either: https://t.me/s/lrepacks

patrickdrd commented 5 years ago

this for lrepacks:

<div class="tgme_widget_message_author">{*}<span dir="auto">{%}</span>{*}
<div class="tgme_widget_message_text js-message_text" dir="auto">{%}</div>{*}
<i class="link_preview_right_image" style="background-image:url('{%})"></i>{*}
<div class="link_preview_title" dir="auto">{%}</div>{*}
<a class="tgme_widget_message_date" href="{%}">{*}<time datetime="{%}T{%}+00:00">
oldman-x commented 4 years ago

I wrote very simple script for this purpose, thanks r78spb, any public channel should be work. For test try: https://telegram2rss.000webhostapp.com/?c=breakingmash https://telegram2rss.000webhostapp.com/?c=tvrain or https://telegram2rss.000webhostapp.com/?c=your_channel_here

Skyross commented 4 years ago

https://node2.feed43.com/profunctor-optics.xml

r78spb commented 4 years ago

вот хороший вариант https://rsshub.app/telegram/channel/severnygorod

squromiv commented 4 years ago

вот хороший вариант https://rsshub.app/telegram/channel/severnygorod

И чем же он хорош? Там вроде админ канала должен доступ давать. Раньше, по крайней мере, так было.

r78spb commented 4 years ago

не надо доступ норм работает

VillyVonka commented 4 years ago

А для отображения изображений что можно придумать?

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.