Telegram bot, which is able to parse RSS and use the openai api to generate a short summary and a link to the source. It's also possible to add sources through commands in the telegram bot.
Installation
git clone https://github.com/btwkenji/rssman
- Install all dependencies:
go mod tidy
Usage
- Create file with name "config.local.hcl" and inside the file create:
tolegram_bot_token = "your token"
openai_token = "your token"
telegram_channel_id = -1116543419111 // example id
openai_promt = "Make a summary of the text" // to make summary
cd cmd
go run main.go
docker build -t your_image_name .
docker run -d -p 8080:80 your_image_name
Commands
/addsource {"name": "source name", "url": "source url"}
/listsources
/deletesource {"name": "source name"}
/setpriority
Contributing
-
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
-
Please make sure to update tests as appropriate.
license