Skip to content

susaninpro/telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot Petrovich

Petrovich. Radosti skupyye telegrammy

A Telegram bot running with RSS and VK group integration and ready to deploy with Heroku. Now bot supports sending text message from RSS and VK groups only.

Installation

  1. Clone this repo
  2. pip install -r requirements.txt
  3. Create the bot on Telegram (just say /newbot to BotFather)
  4. Update config.py with your information (tokens, keys, etc)
  5. For first run you should uncomment init_webhook() and run python bot.py. It should set new webhook to Heroku server
  6. For broadcast message from your VK public just run python parser.py. It retrieves 20 post and sends it to all user of Heroku database
  7. That's it!

Heroku

You can host your Bot for free on Heroku. It is ready to deploy.

heroku create
git push heroku master
heroku ps:scale web=1
heroku ps
heroku logs

Also you should schedule (I using Heroku Scheduler) VK parser for broadcast posts from your public to users.

This repo used by:

About

Telegram bot for susanin.pro RSS-feed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages