An open API service indexing awesome lists of open source software.

https://github.com/xamgore/theycantalk-telegram-bot

fetches tumblr posts and sends them to a telegram channel
https://github.com/xamgore/theycantalk-telegram-bot

telegram tumblr

Last synced: over 1 year ago
JSON representation

fetches tumblr posts and sends them to a telegram channel

Awesome Lists containing this project

README

          

  `———>`  

## tumblr to telegram translator

This project is needed to automatically take news from a tumblr blog and send them to Telegram's channel.

### How it works

The algorithm is simple:
- send a request and pick up blog posts from tumblr
- skip news that were previously sent
- send the remaining ones to the telegram channel

### How to build

There is the `.env.example` file in the project root. Rename it to `.env`, change variables inside, then download all dependencies by `npm i`, and run the app with `npm start` command. Yarn is also supported.

To add a task to cron run `crontab -e`, then add the line:

```
*/30 * * * * cd /home/xamgore/tumblr-to-telegram/ && /usr/local/bin/node ./index.js
```