{"id":21074629,"url":"https://github.com/defer-panic/news-feed-bot","last_synced_at":"2025-05-16T06:31:28.191Z","repository":{"id":179944425,"uuid":"617316073","full_name":"defer-panic/news-feed-bot","owner":"defer-panic","description":"Bot for Telegram that gets and posts news to a channel.","archived":false,"fork":false,"pushed_at":"2023-10-31T22:49:48.000Z","size":110,"stargazers_count":25,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T21:07:32.947Z","etag":null,"topics":["golang-application","openai-api","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/readme_go","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defer-panic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-22T06:09:44.000Z","updated_at":"2024-05-28T14:21:04.000Z","dependencies_parsed_at":"2023-11-01T00:32:03.806Z","dependency_job_id":null,"html_url":"https://github.com/defer-panic/news-feed-bot","commit_stats":null,"previous_names":["defer-panic/news-feed-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defer-panic%2Fnews-feed-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defer-panic%2Fnews-feed-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defer-panic%2Fnews-feed-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defer-panic%2Fnews-feed-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defer-panic","download_url":"https://codeload.github.com/defer-panic/news-feed-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225411509,"owners_count":17470246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang-application","openai-api","telegram-bot"],"created_at":"2024-11-19T19:17:05.954Z","updated_at":"2024-11-19T19:17:06.961Z","avatar_url":"https://github.com/defer-panic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# News Feed Bot\n\nBot for Telegram that gets and posts news to a channel.\n\n# Features\n\n- Fetching articles from RSS feeds\n- Article summaries powered by GPT-3.5\n- Admin commands for managing sources\n\n# Configuration\n\n## Environment variables\n\n- `NFB_TELEGRAM_BOT_TOKEN` — token for Telegram Bot API   \n- `NFB_TELEGRAM_CHANNEL_ID` — ID of the channel to post to, can be obtained via [@JsonDumpBot](https://t.me/JsonDumpBot)\n- `NFB_DATABASE_DSN` — PostgreSQL connection string\n- `NFB_FETCH_INTERVAL` — the interval of checking for new articles, default `10m`\n- `NFB_NOTIFICATION_INTERVAL` — the interval of delivering new articles to Telegram channel, default `1m`\n- `NFB_FILTER_KEYWORDS` — comma separated list of words to skip articles containing these words\n- `NFB_OPENAI_KEY` — token for OpenAI API\n- `NFB_OPENAI_PROMPT` — prompt for GPT-3.5 Turbo to generate summary\n\n## HCL\n\nNews Feed Bot can be configured with HCL config file. The service is looking for config file in following locations:\n\n- `./config.hcl`\n- `./config.local.hcl`\n- `$HOME/.config/news-feed-bot/config.hcl`\n\nThe names of parameters are the same except that there is no prefix and names are in lower case instead of upper case.\n\n# Nice to have features (backlog)\n\n- [ ] More types of resources — not only RSS\n- [x] Summary for the article\n- [ ] Dynamic source priority (based on 👍 and 👎 reactions) — currently blocked by Telegram Bot API\n- [ ] Article types: text, video, audio\n- [ ] De-duplication — filter articles with the same title and author\n- [ ] Low quality articles filter — need research\n\t- Ban by author? \n\t- Check article length — not working with audio/video posts, but it will be fixed after article type implementation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefer-panic%2Fnews-feed-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefer-panic%2Fnews-feed-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefer-panic%2Fnews-feed-bot/lists"}