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
-
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
- 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