{"id":34681628,"url":"https://github.com/elamirch/fayfee","last_synced_at":"2026-03-16T19:01:46.354Z","repository":{"id":289835310,"uuid":"970879453","full_name":"elamirch/fayfee","owner":"elamirch","description":"Favorite Feed Generator in RUST 🦀 | Demo at @TheElamite channel on Telegram","archived":false,"fork":false,"pushed_at":"2025-04-25T09:48:36.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T10:30:47.937Z","etag":null,"topics":["newsapi","rust","telegram","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://t.me/theelamite","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elamirch.png","metadata":{"files":{"readme":"README.md","changelog":"newsapi/Cargo.lock","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,"zenodo":null}},"created_at":"2025-04-22T17:13:08.000Z","updated_at":"2025-04-25T09:48:39.000Z","dependencies_parsed_at":"2025-04-25T10:31:03.685Z","dependency_job_id":"c47fc798-555a-4663-999e-b3f54f1e6755","html_url":"https://github.com/elamirch/fayfee","commit_stats":null,"previous_names":["elamirch/fayfee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elamirch/fayfee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elamirch%2Ffayfee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elamirch%2Ffayfee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elamirch%2Ffayfee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elamirch%2Ffayfee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elamirch","download_url":"https://codeload.github.com/elamirch/fayfee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elamirch%2Ffayfee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28008544,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["newsapi","rust","telegram","telegram-bot-api"],"created_at":"2025-12-24T21:12:04.507Z","updated_at":"2025-12-24T21:12:04.827Z","avatar_url":"https://github.com/elamirch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FayFee\n\nA simple Rust-based feed aggregator that fetches the latest headlines from [NewsAPI](https://newsapi.org/) and posts them to your Telegram channel. Future roadmap includes AI-powered interpretations of each article.\n\nDemo:  \n👉 [@TheElamite](https://t.me/theelamite)\n\n## 🔧 Features\n\n- Fetch top headlines from NewsAPI\n- Post articles to a Telegram channel\n- 🛠️ Built-in library for AI-powered message interpretations (coming soon)\n- Easy cronjob setup for daily automation\n\n\n## 🚀 Prerequisites\n\n1. **Rust \u0026 Cargo**  \n   - Install from [rustup.rs](https://rustup.rs/).\n2. **Telegram Bot**  \n   - Create a bot via [@BotFather](https://t.me/BotFather).  \n   - Save your **Bot Token**.\n3. **Telegram Channel**  \n   - Create a public or private channel.  \n   - Add your bot as an administrator.\n4. **NewsAPI Key**  \n   - Sign up at [newsapi.org](https://newsapi.org/).  \n   - Copy your **API Key**.\n\n\n## ⚙️ Installation\n\n```bash\ngit clone https://github.com/elamir/fayfee.git\ncd fayfee\ncargo build --release\n```\n\n\n## 🔑 Configuration\n\nRename the `env.example` file in project root to `.env`:\n\n```dotenv\nNEWSAPI_KEY=your_key_here\nNEWSAPI_ENDPOINT=\"https://newsapi.org/v2/top-headlines\"\n\nMETIS_SESSION_ID=your_session_id_here\nMETIS_API_KEY=your_key_here\n\nTELEGRAM_API=your_key_here\nTELEGRAM_CHANNEL_ID=your_channel_id_here\n```\n\n### How to find your Channel ID\n\n1. Post any message in your channel (e.g. “Hello!”).  \n2. Use Telegram’s **getUpdates** endpoint:\n\n   ```bash\n   curl -s \"https://api.telegram.org/bot\u003cYOUR_BOT_TOKEN\u003e/getUpdates\" \\\n     | jq '.result[].message'\n   ```\n\n3. Look for the `\"chat\":{\"id\": ...}` field.  \n   - Channel IDs are negative integers, e.g. `-1001234567890`.\n\n\n## 💡 Usage\n\nRun the binary directly:\n\n```bash\n./target/release/fayfee\n```\n\nYou should see logs like:\n\n```\nFayFee is running...\nDate: 2025-04-24\nArticle being processed: some_article_title\nAll articles sent!\n```\n\n\n## 🗓️ Automate with Cron\n\nAdd to your crontab to run daily (e.g. at 8 AM):\n\n```cron\n0 8 * * * /path/to/fayfee --env-file /path/to/.env \u003e\u003e /var/log/fayfee.log 2\u003e\u00261\n```\n\n\n## 🤖 AI-Powered Interpretations (Roadmap)\n\nWe include a library (`metisai`) that will let you ask for custom interpretations of the news. Example usage (coming soon!):\n\n\n## 📋 Roadmap\n\n- [x] Fetch \u0026 post headlines  \n- [x] .env configuration support  \n- [ ] AI-driven interpretations (Q2 2025)  \n- [ ] Multi-source support (RSS, other APIs)  \n- [ ] Web dashboard \u0026 metrics\n\n\n## 📝 License\n\nThis project is distributed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felamirch%2Ffayfee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felamirch%2Ffayfee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felamirch%2Ffayfee/lists"}