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 egeretrieve 5 posts fromegechannel - Bot using botan.io for collecting statistic.
- Create the bot on Telegram (just say
/newbotto BotFather) - Update
config.pywith your information (tokens, keys, etc) - Uncomment last 2 lines of the
bot.pyscript and push all changes to Heroku - Run
heroku run python./bot/bot.py`. It should set new webhook to Heroku server - Revert
bot.pyscript 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.pyevery 10 minutes for Brodcaster andif [ "$(date +%d)" = 01 ]; then python ./bot/cache_cleaner.py; fifor Database Cleaner - That's it!




