Skip to main content

Fetch rss and send the latest update to telegram.

Project description

Telegram RSS

PyPi Package Version Supported Python versions LICENSE Mypy

Fetch rss and send the latest update to telegram. This module is still in active development

Usage

Setup

  • Make sure you have python installed.
  • Open command line.
  • Install pip install --upgrade telegram-rss
  • Run python -m telegram_rss
  • Add bot token, feeds, user's id, and/or channel's id inside telegram-rss/config.toml
  • Run python -m telegram_rss update to send initial update (use personal id to send initial update)

If your system support entry_points, you can execute python -m telegram_rss with telegram-rss.

Sending update

Run python -m telegram_rss update to check and send the latest

Example config

bot_token = "987654321:ASDASDASD-1sda2eas3asd-91sdajh28j"
env_token = "TOKEN"
users = [ 123456789,]
channels = [ -123456789,]
[[feeds]]
name = "Feed example online"
source = "http://feedparser.org/docs/examples/atom10.xml"
[[feeds]]
name = "Feed example local"
source = "c:\\incoming\\atom10.xml"

How to get token

Just create a new bot account using @BotFather. Don't forget to add the bot as channel's admin

How to get ids

Send / forward a message (user or channel) to @JsonDumpBot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegram-rss-0.2.2.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

telegram_rss-0.2.2-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page