Skip to content

rsavin/VkToTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VkToTelegram

The pipe between VK.com communities and Telegram messenger. It checks VK communities walls every minute and sends new posts to the Telegram users.

Usage

You have to create properties.json file with the following params:

{
  "public_walls": [
    "<wall_id1>",
    "<wall_id2>",
    "<wall_id3>"
  ],
  "private_walls": [
    "<wall_id1>",
    "<wall_id2>",
    "<wall_id3>"
  ],
  "telegram_bot_token": "<your_telegram_bot_token>",
  "user_ids": [
    "<telegram_user_id1>",
    "<telegram_user_id2>",
    "<telegram_user_id3>"
  ],
  "vk_access_token": "<access_token_for_private_communities>"
}

The telegram_bot_token parameter is the token of your telegram bot which will send messages. It's required parameter.

The user_ids parameters is the ids of telegram users which will receive messages. It's required parameter.

The public_walls parameter is the list of public communities (or users) walls. It's the same parameter as domain in the wall.get request.

The private_walls parameter is the list of private communities (or users) walls. It's the same parameter as domain in the wall.get request. You must specify vk_access_token for accessing to these walls.

The vk_access_token parameter is the access token for accessing to private walls. For more information see https://vk.com/dev/authentication

Run:

python vk_to_telegram.py properties.json

License

Copyright 2015 Roman Savin

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Sends posts from VK.com communities to Telegram.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages