Listens for your messages updates and forwards them to your Telegram.
- Copy
set_env.example.sh
toset_env.sh
- Create standalone VK app with any name and copy its App ID from settings to
set_env.sh
- Create new Telegram bot with any name by sending
/newbot
command to @BotFather and copy token to access the HTTP API toset_env.sh
- Configure bot with commands from bot_info.md
- Run bot with
./run.sh
(you can specifyreset-db
parameter, if you messed up the database. You can always just remove the database file)
Deploying to Heroku
Install Heroku Toolbelt, then:
cd vk-messages-bot
heroku login
heroku create vk-messages-bot # create app
heroku buildpacks:set heroku/python # set python buildpack
git push heroku master # deploy app to heroku
heroku config:set VK_CLIENT_ID='<VK_APP_CLIENT_ID>' # set config vars
heroku config:set TELEGRAM_TOKEN='<TELEGRAM_TOKEN>'
heroku ps:scale worker=1 # start 1 worker dyno
heroku ps:stop worker # or stop worker dyno
https://devcenter.heroku.com/articles/dynos https://devcenter.heroku.com/articles/config-vars