Skip to content
egor-lukinPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Channel RSS Feed Generator

A Go application that generates RSS feeds from Telegram channels.

Features

  • Parse Telegram channel from Web pages.
  • Cache fetched data in SQLite to minimize redundant network requests.
  • Generate and serve RSS feeds in XML format.

Installation

go install github.com/egor-lukin/tg-feeds@latest

Usage

Running the Application

To run the server, use:

./tg-feeds -dbpath /path/to/your/database.db -port 4567

Parameters

  • -dbpath: Path to the SQLite database file. Defaults to ./tg-feeds.db.
  • -port: Port on which the GIN server will run. Defaults to 4567.

Fetching RSS Feeds

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.

Ping Endpoint

To verify that the server is running, you can access the ping endpoint:

curl http://localhost:4567/ping

This should return a JSON response with the message "pong".

Development

Clone and Setup

  1. Clone the repository:

    git clone https://github.com/egor-lukin/tg-feeds.git
    cd tg-feeds
  2. Get the dependencies:

    go mod download
  3. Build the application:

    go build -o tg-feeds

Creating a New Release

To trigger a new build and release:

  1. Create a new tag (replace v1.0.0 with your desired version):

    git tag v1.0.0
    git push origin v1.0.0
  2. GitHub Actions will automatically build the binary and upload it to the Releases page for the new tag.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址