For more env variables and detailed information, read Advanced Settings.
- Turn to @BotFather, send
/newbot
create a new bot, then get its token (env variable:TOKEN
). After that, send/setinline
, select your bot, and reply with an inline placeholder you like to enable inline mode for your bot. For example, @RSStT_Bot is usingPlease input a command to continue...
. - Turn to @userinfobot to get your user ID (env variable:
MANAGER
). - Get Telegraph API access tokens (env variable:
TELEGRAPH_TOKEN
). Refresh the page every time you get a new token. If you have a lot of subscriptions, make sure to get at least 5 tokens.
For the docker images go to: https://hub.docker.com/r/rongronggg9/rss-to-telegram
mkdir rsstt
cd rsstt
wget https://raw.githubusercontent.com/Rongronggg9/RSS-to-Telegram-Bot/master/docker-compose.yml.sample -O docker-compose.yml
vi docker-compose.yml # fill in env variables
docker-compose up -d
docker-compose down
docker-compose pull
docker-compose up -d
Uncheck the checkbox
Private repository
! Or you are not able to update with ease.
master | dev |
---|---|
After deployed, check the bot log to see if it is using PostgreSQL (postgre
), otherwise, all the data will be lost when updating.
Please note that if you deploy RSStT without using the above buttons, you must manually add the PostgreSQL plug-in.
Turn to the fork automatically created by Railway and switch to the branch you've deployed, then click Fetch upstream
and Fetch and merge
.
Heroku accounts with no verified payment method have only 550 hours of credit per month (about 23 days), and up to 1,000 hours per month with any verified payment methods.
master | dev |
---|---|
IMPORTANT
If you deploy RSStT as a free dyno, it will sleep if the dyno receives no web traffic in 30 minutes. Sending commands to the bot will NOT help.
Turn to Kaffeine, filling your Heroku app name, and click Give my app a caffeine shot every 30 minutes ☕
. You do not need to check I want a bedtime!
as long as your account has a verified payment method since Heroku has no longer enforced 6-hour-per-day sleeps since 2017. However, if your account has no verified payment method, you may still want to check I want a bedtime!
. By checking it, your dyno will have a 6-hour sleep per day, which ensures that it will not exhaust your 550-hour credit.
- Fork RSStT to your GitHub account.
- Use the instant deploy buttons above to deploy RSStT to Heroku.
- Switch the
Deployment method
toGitHub
(Deploy
tab ->Deployment method
) and connect the app to your fork. - Enable
Automatic deploys
(Deploy
tab ->Automatic deploys
->Enable Automatic Deploys
). - Each time upstream updates, turn to your fork and switch to the branch you've deployed, then click
Fetch upstream
andFetch and merge
.
Minimal: Python 3.7+ (x86 / amd64), Python 3.8+ (arm64)
Recommended: Python 3.9+
git clone https://github.com/Rongronggg9/RSS-to-Telegram-Bot.git
cd RSS-to-Telegram-Bot
pip3 install -r requirements.txt
vi .env # fill in env variables
python3 -u telegramRSSbot.py