Git Product home page Git Product logo

rss-feed-telegram-bot's Introduction

RSS Feed Telegram Bot

A bot to post messages to Telegram Groups or Channels from rss feed.

Configuration

  • Edit the rss.py as your needs.
  • Edit values in config.env or set it in Environment Variables. There is an template for config.env already exists just edit it and rename the file.

Configuration Values

  • APP_ID - Get it from my.telegram.org
  • API_HASH - Get it from my.telegram.org
  • BOT_TOKEN - Get it by creating a Telegram bot on BotFather
  • FEED_URLS - List of URLs of RSS Feed, sperated by | vertical bar.
  • LOG_CHAT - ID of the Telegram Chat where messages are to be posted.
  • DATABASE_URL - Here is a full guide. For Heroku, just add the Heroku Postgres add-on.
  • INTERVAL - Checking Interval in seconds. (optional)
  • MAX_INSTANCES - Max instances to be used while checking rss feed. (optional)

Deployment

pip3 install requirements.txt
  • Deploy
python3 rss.py

Copyright & License

rss-feed-telegram-bot's People

Contributors

viperadnan-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rss-feed-telegram-bot's Issues

heroku

can you make heroku deploy button also with app.json

PSARips Rss Feed not Working

https://x265.club/feed/ --> This RSS feed link is not working.
Traceback (most recent call last):

2021-04-24T03:34:57.746218+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/apscheduler/executors/base.py", line 125, in run_job

2021-04-24T03:34:57.746219+00:00 app[worker.1]: retval = job.func(*job.args, **job.kwargs)

2021-04-24T03:34:57.746219+00:00 app[worker.1]: File "/app/rss.py", line 33, in check_feed

2021-04-24T03:34:57.746274+00:00 app[worker.1]: entry = FEED.entries[0]

2021-04-24T03:34:57.746275+00:00 app[worker.1]: IndexError: list index out of range

DATABASE_URL is not configured. Features depending on the database might have issues.

2022-09-04T12:05:27.496718+00:00 app[worker.1]: DATABASE_URL is not configured. Features depending on the database might have issues.

2022-09-04T12:05:27.496732+00:00 app[worker.1]: 'NoneType' object has no attribute '_instantiate_plugins'

2022-09-04T12:05:27.497452+00:00 app[worker.1]: Traceback (most recent call last):

2022-09-04T12:05:27.497462+00:00 app[worker.1]:   File "/app/rss.py", line 4, in <module>

2022-09-04T12:05:27.497565+00:00 app[worker.1]:     from sql import db

2022-09-04T12:05:27.497566+00:00 app[worker.1]:   File "/app/sql/db.py", line 2, in <module>

2022-09-04T12:05:27.497626+00:00 app[worker.1]:     from sql import SESSION, BASE

2022-09-04T12:05:27.497654+00:00 app[worker.1]: ImportError: cannot import name 'SESSION' from 'sql' (/app/sql/__init__.py)

Getting this Issue
i followed every step given

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.