
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](https://github.com/telegraf/telegraf) ## What is this? This is a utility for express to send fresh posts from VK to Telegram! Be careful, it doesn't send **audio and poll's**(maybe fix soon). ## Installation npm instal
Powered by Telegraf
This is a utility for express to send fresh posts from VK to Telegram!
Be careful, it doesn't send audio and poll's(maybe fix soon).
npm install git+https://github.com/ejnshtein/vk-to-telegram.git
Soon i'll push it to npm package
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) // When any content will be posted to this path it's gone to sending to Telegram
app.listen(80,()=>{
console.log('listening on port 80')
})
Variable | Required | Description |
---|---|---|
token | Yes | Bot token from Botfather |
chatName | Yes | Telegram channel or group link, like '@tavernofheroes' but without @!!! |
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=code&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. AND It's free, yeah ( ͡° ͜ʖ ͡°)
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.