0x111 / telegram-rss-bot

RSS bot for telegram written in Go
MIT License
41 stars 21 forks source link

Export feeds as opml #6

Open ghost opened 4 years ago

ghost commented 4 years ago

It's better to allow users to backup their subscribed feeds.

0x111 commented 4 years ago

I am not familiar with any OPML format.

The question is where could this OPML be used? Are there any alternatives, like for example a JSON dump? Based on a quick search, I've found this tool. As far as I understand OPML is ideal for transferring your feeds from one aggregator to the other.

Is the output by the tool good enough for it to be used generally for the purpose of backup/restore of feeds? I am not using other rss readers except of this bot myself, that is why I would need additional info.

Also accepting PR's.

ghost commented 4 years ago

OPML is the most widely used format to transfer feeds between readers, and most of them only support opml. This tool is awesome, but telegram has a message size limit, if I subscribe too many feeds, the /list command will unable to export feeds. so I think at least this bot should split output when using /list.

0x111 commented 4 years ago

Thanks!

I've just meant the tool as a reference on what the output should be, this is easily implementable. I am thinking of an /export command inside telegram, which the bot then could send you as a file attachment possibly. So on export command you would be sent a xml file that contains the feeds in that format as it is done by the tool.

Let's not mix the list command into this. So if there is a bug related to that, regarding the message limit please open a new issue where we can discuss this and have an example use-case.