Feed My Telegram
This service checks RSS/Youtube/Twitter sources and publish new entities to Telegram.
Sources
You should have json file with feed sources. You can use https://gist.github.com/ for it.
source.json
example:
[
{
"type": "RSS",
"identifier": "http://lorem-rss.herokuapp.com/feed?unit=second&interval=60",
"channelId": "-100123456789"
},
{
"type": "RSS",
"identifier": "http://lorem-rss.herokuapp.com/feed?unit=second&interval=30",
"channelId": "-100123456789"
},
{
"type": "Twitter",
"identifier": "nodejs",
"channelId": "-100123456789"
},
{
"type": "Youtube,
"identifier": "UC-lHJZR3Gqxm24_Vd_AJ5Yw",
"channelId": "-100123456789"
}
]
Telegram Access Token
For getting telegram access token you should create telegram bot. More information here: https://core.telegram.org/bots#botfather
Development
Create .env file for development
$ cp .env.defaults .env
and set env variables.
Deployment
- Set production docker machine
$ eval $(docker-machine env MACHINE_NAME)
- Create .env file for production
$ cp .env.defaults .env.prod
-
Set env variables
-
Deploy using docker
$ docker-compose up --build -d fmt