Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banonotit/rss-to-telegram
https://github.com/banonotit/rss-to-telegram
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/banonotit/rss-to-telegram
- Owner: BANOnotIT
- Created: 2022-04-09T20:47:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-09T23:44:04.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T03:11:17.177Z (2 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rss-to-telegram
Features:
- [ ] RSS parsing
- [ ] Atom parsing
- [ ] Telegram messaging
- [ ] Saving last state to file
- [ ] Template language for messages
- [ ] Escaped html
- [ ] Telegram message pinning
- [ ] Auth in sources
- [ ] Implement daemon mode with schedule
- [ ] Implement inline link buttons
- [ ] Create a JSON Schema for config files## Files
**Config file format**
```yaml
%YAML 1.2
---
# this file is located in $XDG_CONFIG/rss-to-telegram/config.yaml or is passed through --config/-c param
version: rss2telegram/v0-alphatasks:
- id: url-complaint-task-id-to-be-used-in-logs
first run:
# using full iso8601 / rfc3339
since: 1985-04-12T23:20:50.52Z
# or
config file attr: mtime # or ctime
# or
skip: yessources:
- url: https://login:[email protected]/rss.xml
messages:
# only html format available
- pin: yes
silent: yes
attachments:
- channel image
- mime: image/*
with caption: yes
- mime: video/mp4
with caption: yes
template: |
{{ title }}
{{ excerpt | cleanTg }}{{ date | date "Y/M/d T:mm" }}
- chain to previous: yes
attachments:
- mime: audio/*
with caption: yes
- chain to previous: yes
attachments:
- mime: */*
with caption: yes
outputs:
- token: 123456:deafdeadbeefe
receivers:
- -123465
- @channelname
- -87951349875661687 # long numbers should be done witout stringspersist:
path: /absolute/file/path.yaml # or is provided by --persist/-Pdaemon:
enabled: yes # or use --daemon / -d
schedule: */5 * * * * # cron syntax
```**Persistant file format**
```yaml
last run: 2020-01-01T01:01:01Zsources:
- uuid: 000000000-000000-000000-000000 # uuid generated using url
internal id: http://asdf;lkja;lskdjfas # id generated by source
masked url: https://***@example.com/rss.xml # somehow secured url
ETag: jklkjklj
accessed: 2020-01-01T01:01:01Z
```