rss-bridge icon indicating copy to clipboard operation
rss-bridge copied to clipboard

[TelegramBridge] Disable limit to the number of parsed articles

Open squromiv opened this issue 4 years ago • 7 comments
trafficstars

Often I need to get not only the last articles from a channel, but also previous 100-200-500 and more messages. It will be great to have an option to regulate limit of messages to grab or to turn off this limit (best solution for me).

squromiv avatar Apr 26 '21 09:04 squromiv

The bridge works by downloading https://t.me/s/<channel_name>. That page only shows the latest 20 posts in the channel (unless you scroll up, which the bridge can't do), which is why TelegramBridge only returns the latest 20 posts. To get more then 20 posts we would need to fetch them from elsewhere I think. I'm gonna leave this issue for someone else to implement.

t0stiman avatar Jul 28 '21 10:07 t0stiman

Someone asked me for this, I implemented this for money. Here is the modified bridge. https://github.com/em92/rss-bridge/blob/58746t/bridges/TelegramBridge.php

Also that modified bridge somehow solves https://github.com/RSS-Bridge/rss-bridge/issues/1901

em92 avatar Jul 29 '21 10:07 em92

Okay cool, so just yeet that into a pull request?

t0stiman avatar Jul 30 '21 09:07 t0stiman

No, I won't accept this feature. Bridge with this feature will generate a lot of traffic to telegram and possibly will lead to ban.

em92 avatar Jul 30 '21 13:07 em92

No, I won't accept this feature. Bridge with this feature will generate a lot of traffic to telegram and possibly will lead to ban.

Может добавить его как отдельный бридж? Чтобы каждый мог при необходимости использовать это из коробки (думаю такие запросы будут повторяться тк не все смогут найти этот тикет) А хостеры публичных бриджей смогут выключать это чтобы не получить бан

dumprop avatar Aug 16 '21 17:08 dumprop

The bridge works by downloading https://t.me/s/<channel_name>. That page only shows the latest 20 posts in the channel (unless you scroll up, which the bridge can't do), which is why TelegramBridge only returns the latest 20 posts. To get more then 20 posts we would need to fetch them from elsewhere I think. I'm gonna leave this issue for someone else to implement.

It doesn't need to scroll up https://t.me/s/telegram?before=20 and you get first 20 posts, https://t.me/s/telegram?before=40 and you get 21-40 posts, etc There no too much channels with 1k+ posts I think it will be cool feature out of the box But yes, it's probably a headache for public instances, some possible restrictions are needed @em92 what do you think about that? seems you have another implementation

dumprop avatar Aug 16 '21 17:08 dumprop

this is still interesting. those before params still works

dvikan avatar Sep 12 '23 22:09 dvikan