Skip to content

very flexible telegram bot, RSS parser, openai summary generator, automation

License

Notifications You must be signed in to change notification settings

kenjitheman/rssman

Repository files navigation

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/kenjitheman/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
  • Run the app using:
cd cmd
go run main.go
  • Or using docker:
docker build -t your_image_name .
docker run -d -p 8080:80 your_image_name

Commands

  • To add source:
/addsource {"name": "source name", "url": "source url"}
  • To get sources:
/listsources
  • To delete source:
/deletesource {"name": "source name"}
  • To set source priority:
/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