Giter VIP home page Giter VIP logo

rss-to-telegram-bot's Introduction

RSSTT

GitHub tag (latest by date) Docker Pulls Docker Stars GitHub Workflow Status (branch) Docker Image Size (latest by date)

RSS to Telegram bot

A self-hosted telegram JavaScript/TypeScript bot that dumps posts from RSS feeds to a telegram chat. This script was created because all the third party services were unreliable.

The bot is publicly available on telegram: http://t.me/rss_t_bot

help

Docker

For the docker image go to: https://hub.docker.com/r/bokker/rss.to.telegram/

Installation

Dont forget to use the right node version. nvm use or match the version in .nvmrc

npm install
cp .env.example .env
npm run dev

Dont forget to fill the .env file

A telegram bot is needed that the script will connect to. https://botsfortelegram.com/project/the-bot-father/ Running the script and typing in /help will reveal all the commands

  1. Clone the script
  2. Save and run
  3. Use the telegram commands to manage feeds

Known issues

There are no known issues but the telegram API has limitations on how many messages per chat you can receive

Docker

This container uses Redis and Bull for queuing the messages

docker create \
  --name=rss.to.telegram \
  -e TOKEN=chat:token \
  -e DEBUG=false \
  -e REDIS_HOST=127.0.0.1 \
  -e REDIS_PORT=6379 \
  -e REDIS_USER=default \
  -e REDIS_PASSWORD=secret \
  -e REDIS_MUTEX=random-value \
  -v /path/to/host/config:/app/config \
  --restart unless-stopped \
  bokker/rss.to.telegram

Prisma

Prisma is used to manage SQLite structure changes and as a ORM

To create any change you need to do the following:

  1. Backup current database
  2. Alter the prisma.schema
  3. npx prisma migrate dev -n migration-name
  4. test the migration on an old version of the database npx prisma migrate deploy
  5. test the migration by having no database npx prisma migrate deploy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.