https://github.com/ilyabizyaev/feedbot
A simple Telegram bot to forward posts from RSS channels
https://github.com/ilyabizyaev/feedbot
rss rust telegram telegram-bot
Last synced: 12 months ago
JSON representation
A simple Telegram bot to forward posts from RSS channels
- Host: GitHub
- URL: https://github.com/ilyabizyaev/feedbot
- Owner: IlyaBizyaev
- Created: 2023-01-06T22:44:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T16:38:48.000Z (over 1 year ago)
- Last Synced: 2025-04-07T01:17:12.959Z (about 1 year ago)
- Topics: rss, rust, telegram, telegram-bot
- Language: Rust
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/Apache-2.0.txt
Awesome Lists containing this project
README
# feedbot
A simple Telegram bot to forward posts from RSS channels.
## Configuration
1) Provide a JSON configuration file (`--config`):
```json
{
"general": {
"owner_id": 1234567
},
"feeds": [
{
"url": "https://example.com/index.xml",
"chat_id": "123123123",
"post_format": "$title\n\n$url"
}
]
}
```
Or, alternatively, set the environment variables:
```ini
FEEDBOT_GENERAL='{owner_id=1234567}'
FEEDBOT_FEEDS='[{url="https://example.com/index.xml", chat_id="123123123"}]'
```
2) Set the `TELOXIDE_TOKEN` environment variable to your bot's Telegram API token.
3) Make sure that the bot has a writable `--cache` directory: it will use it to store the URL cache (defaults to `./cache`).
4) Use something like Cron to schedule regular bot launches (see [`systemd`](systemd) for a sample
systemd configuration).
## Dependencies
See [`Cargo.toml`](./Cargo.toml) for the full list of dependencies.
## License
This project is licensed under the Apache 2.0 license and follows the REUSE Specification. See
[`LICENSES`](./LICENSES) for the full license texts.