Skip to content

Run on android

Habib Rohman edited this page Feb 11, 2021 · 1 revision

How to run telegram-rss on android periodicaly

Install termux, termux-api, and termux-boot.

Setup

  • Start termux app
  • Run command pkg upgrade
  • Install python pkg install python
  • Install telegram-rss pip install --upgrade telegram-rss
  • Run telegram-rss to init config folder
  • Edit configs inside telegram-rss folder
  • Run telegram-rss update to get initial update

Add at least 1 userids or 1 channelids and 1 feed.

Setup for periodicaly

  • Install termux-api package pkg install termux-api
  • Create telegram-rss.sh containing
#!/data/data/com.termux/files/usr/bin/sh
telegram-rss update
  • Change script into executable chmod +x telegram-rss.sh
  • Finally add the script to scheduler, run
termux-job-scheduler --job-id 1 -s telegram-rss.sh --persisted true --period-ms 900000

You can change job-id to any number Run the script every every period-ms; in miliseconds so 1000 = 1 second; 3600000 = 1 hour; 900000 = 15 minutes.

Cancel scheduler

You can cancel any pending schedule by running

termux-job-scheduler --cancel --job-id 1
Clone this wiki locally