A Go application that generates RSS feeds from Telegram channels.
- Parse Telegram channel from Web pages.
- Cache fetched data in SQLite to minimize redundant network requests.
- Generate and serve RSS feeds in XML format.
go install github.com/egor-lukin/tg-feeds@latestTo run the server, use:
./tg-feeds -dbpath /path/to/your/database.db -port 4567-dbpath: Path to the SQLite database file. Defaults to./tg-feeds.db.-port: Port on which the GIN server will run. Defaults to4567.
To fetch the RSS feed for a specific Telegram channel, navigate to:
http://localhost:4567/<channel_name>Replace <channel_name> with the name of the Telegram channel you want to get the RSS feed for.
To verify that the server is running, you can access the ping endpoint:
curl http://localhost:4567/pingThis should return a JSON response with the message "pong".
-
Clone the repository:
git clone https://github.com/egor-lukin/tg-feeds.git cd tg-feeds -
Get the dependencies:
go mod download
-
Build the application:
go build -o tg-feeds
To trigger a new build and release:
-
Create a new tag (replace
v1.0.0with your desired version):git tag v1.0.0 git push origin v1.0.0
-
GitHub Actions will automatically build the binary and upload it to the Releases page for the new tag.
This project is licensed under the MIT License.