A Telegram bot running with RSS and VK group integration and ready to deploy with Heroku.
- Bot support commands:
/last
- send to user last 5 posts/search %search_word%
- send all posts with%search_word%
/random
- send random post/off
- turn off auto broadcasting/on
- turn on auto broadcasting/daily
- turn off daily broadcasting. You can set time inconfig.py
/hourly
- turn off hourly broadcasting./help
- just send help info
- Bot can work with multiply channels. For example
/last ege
retrieve 5 posts fromege
channel - Bot using botan.io for collecting statistic.
- Create the bot on Telegram (just say
/newbot
to BotFather) - Update
config.py
with your information (tokens, keys, etc) - Uncomment last 2 lines of the
bot.py
script and push all changes to Heroku - Run
heroku run python
./bot/bot.py`. It should set new webhook to Heroku server - Revert
bot.py
script back and push all changes to Heroku - Schedule (I using Heroku Scheduler) VK parser for broadcast posts from your public to users and database cleaner for long support. I use
python ./bot/broadcaster.py
every 10 minutes for Brodcaster andif [ "$(date +%d)" = 01 ]; then python ./bot/cache_cleaner.py; fi
for Database Cleaner - That's it!