Skip to content

Bot for auto-reposting posts from VK to Telegram channel

Notifications You must be signed in to change notification settings

Nytrock/VkToTelegramReposter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

VK to Telegram reposter

This bot allows you to automatically forward posts from a selected VKontakte group to a selected Telegram channel. Main advantages of the application:

  • Flexible setup
  • Support for pictures, videos, files, gifs attached to posts
  • Automatic division of text into blocks when the character limit in a message is exceeded
  • Support for links in words of text and polls
  • When the connection to the Internet is interrupted, the program automatically turns off and turns on when the network appears

Instructions for use

  • Download latest release

  • Unpack the resulting archive

  • Create config.json file in the folder and fill it like this:

{
   "VK_TOKEN": "Access key to VKontakte API",
   "TELEGRAM_APP_API_ID": "Telegram application ID",
   "TELEGRAM_APP_API_HASH": "Telegram application hash",
   "CHANNEL_NAME": "Name of the channel in Telegram",
   "USER_NAME": "Telegram username",
   "VK_LOGIN": "User login on VKontakte",
   "VK_PASSWORD": "User password on VKontakte"
}

You need to create a Telegram application through this site and get a VK access token (instruction here). How to fill in the remaining fields is intuitive.

  • Run reposter.exe

  • Login into pyrogram

  • While the script is running, the program will run continuously

Instructions for running the source code

  • Clone the repository
git clone https://github.com/Nytrock/VkToTelegramReposter.git
  • Install dependencies with requirements.txt
pip install -r requirements.txt
  • Create config.json file in the folder (For instructions on how to fill it, see above)

  • Run reposter.py

  • Login into pyrogram

  • While the script is running, the program will run continuously

About

Bot for auto-reposting posts from VK to Telegram channel

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages