
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
vk-to-telegram
Advanced tools
Powered by Telegraf
It is a tool for express which using VK callback api forwards posts from group in channel or chat in Telegram!
Be careful, it doesn't sent audio and poll's(maybe fix soon).
For example, this sending posts from Tavern of Heroes | Overwatch to Telegram channel Tavern of Overwatch | News,
Oleg Livanov - One man army trought Heroku to Telegram channel Oleg Livanov - One man army
npm install vk-to-telegram@latest --save
const app = require('express')(),
bodyParser = require('body-parser'),
vkToTelegram = require('vk-to-telegram'),
vkToTg = new vkToTelegram({
botToken: token,
chatName: chatName,
ownerId: ownerId,
vkConfirmation: vkConfirmation,
vkToken: vkToken
})
app.use(bodyParser.json()) // Must needed
app.post('/', vkToTg.send) // Now any data that comes here will be sent to Telegram
app.listen(80,()=>{ // For heroku users - process.env.PORT https://scotch.io/tutorials/how-to-deploy-a-node-js-app-to-heroku
console.log('listening on port 80')
})
Variable | Required | Description |
---|---|---|
token | Yes | Bot token from Botfather |
chatName | Yes | Telegram channel or group link, like '@tavernofheroes' |
ownerId | Yes | Your telegram id for sending error if they are. U can get know it from @getidsbot |
vkConfirmation | Yes | Confirmation string from ur group callback api server: ![]() |
vkToken | Yes | Follow the instructions below: |
1. Create Standalone application here: https://vk.com/apps?act=manage | ||
2. Open settings in created application and copy application id | ||
3. Open this link with replace your application id: | ||
https://oauth.vk.com/authorize?client_id=YOUR APPLICATION ID&display=page&redirect_uri=http://vk.com/&scope=offline,video,docs&response_type=token&v=5.73 | ||
4. Click allow all that need's and it's all! Your token is in query url, do not copy all link, only token without other params. | ||
fromId | Optional | VK group id with '-'in start or nothing, if you don't need check. |
For example, because I had a lot of bot's and when fixing the bug is inconvenient to update the code in all bots.
Also, I have an idea to add discord channel support, but it's just idea. ᕦ( ͡° ͜ʖ ͡°)ᕤ
Here's a telegram group ¯\(ツ)/¯
Also u can write to me directly in Telegram or by mail
FAQs
Vk to telegram forwarder
The npm package vk-to-telegram receives a total of 5 weekly downloads. As such, vk-to-telegram popularity was classified as not popular.
We found that vk-to-telegram demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.