A bot that reposts VK group posts to Telegram channel. Bot uses serverless components of Yandex Cloud.
We assume that you already have Yandex Cloud account with created cloud and folder
npm install
yc init
npm run setup-vars
- Pass VK and Telegram variables into terraform.tfvars
terraform init
npm run build
npm run deploy
- Copy
entry_url
from console output or from Yandex Cloud API Gateway Domain and paste in your VK groupSettings -> API Usage -> Callback API -> URL
. Set ✓ inEvent Types -> Posts -> New
- Click on @jsondumpbot or search for
JSON Dump Bot
on Telegram - Forward a message from your Telegram channel to the JsonDumpBot telegram bot and you should see something like this:
"forward_from_chat": {
"id": -10012312312313,
"title": "some_chat_title",
"username": "some_username",
"type": "channel"
}
- Edit .env file with your variables
- You can get AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, DOCAPI_ENDPOINT and YMQ_QUEUE_URL from Outputs after deploy or you can open any of yours functions in Yandex Cloud and them from there