A Firebase Functions application that automatically fetches RSS feeds and forwards new entries to a Telegram channel.
- Scheduled hourly RSS feed fetching
- Storage of feed entries in Firestore database
- Automatic forwarding of new entries to a Telegram channel
- Firebase project with Firestore database
- Python 3.x
- Telegram bot token and channel
- RSS feed URL
- Clone this repository
- Install Firebase CLI:
npm install -g firebase-tools
- Login to Firebase:
firebase login
- Copy the environment variables file:
cp .env.example .env
- Edit
.env
with your configuration values:TELEGRAM_TOKEN
: Your Telegram bot tokenTELEGRAM_CHANNEL
: Your Telegram channel ID (e.g., @yourchannel)RSS_FEED
: URL of the RSS feed to monitor
- Create a project in Firebase console
- Create a firestore db for the project
- Init project locally:
firebase init
(add repo to your created project) - Deploy to Firebase:
firebase deploy
Set up Python environment:
cd functions
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Run the Firebase emulators:
firebase emulators:start
This will start the Firebase Functions emulator on port 5001 and the Firestore emulator on port 8080.