Socket
Socket
Sign inDemoInstall

vk-to-telegram

Package Overview
Dependencies
77
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

2

package.json
{
"name": "vk-to-telegram",
"version": "0.1.4",
"version": "0.1.5",
"description": "Vk to telegram forwarder",

@@ -5,0 +5,0 @@ "author": "ejnshtein",

# vk to telegram forwarder
Powered by [Telegraf](https://github.com/telegraf/telegraf)

@@ -8,37 +9,44 @@ [![NPM Version](https://img.shields.io/npm/v/vk-to-telegram.svg?style=flat-square)](https://www.npmjs.com/package/vk-to-telegram)

[![telegram chat](https://img.shields.io/badge/telegram-chat-blue.svg)](https://t.me/vktotgforwarder)
## Installation
npm install vk-to-telegram --save
npm i vk-to-telegram --save
### Example
```js
const app = require('express')()
const bodyParser = require('body-parser')
const vkToTelegram = require('vk-to-telegram')
const vkToTg = new vkToTelegram({
botToken: 'your bot token',
chatName: 'telegram chat/channel name', //
ownerId: 'your telegram id', // number
vkToken: 'your very long token from vk api',
vkConfirmation: 'group confirmation'
const app = require('express')()
const bodyParser = require('body-parser')
const vkToTelegram = require('vk-to-telegram')
const vkToTg = new vkToTelegram({
botToken: 'your bot token',
chatName: 'telegram chat/channel name',
ownerId: 'your telegram id', // number
vkToken: 'your very long token from vk api',
vkConfirmation: 'group confirmation'
})
app.use(bodyParser.json()) // Needs to parse request body
app.post('/', (req, res) => {
vkToTg.send(req, res)
.then(() => console.log('Done!'))
.catch((err) => {
console.log('Something went wrong')
console.log(err)
})
})
app.use(bodyParser.json()) // Needs to parse request body
app.post('/', (req, res) => {
vkToTg.send(req, res)
.then(() => console.log('Done!'))
.catch((err) => {
console.log('Something went wrong')
console.log(err)
})
})
app.listen(80,()=>{
console.log('listening on port 80')
})
app.listen(80,()=>{
console.log('listening on port 80')
})
```
## What is this?
## What is this
It is a tool for express which using [VK callback api](https://vk.com/dev/callback_api) forwards posts from group in channel or chat in Telegram!
## They use vk-to-telegram in production
|[<img src="https://i.imgur.com/pra7Wez.jpg" width="120">](https://vk.com/tavernofoverwatch)|[<img src="https://i.imgur.com/2RR0fXh.png" width="120">](https://vk.com/panzer_sofa) | [<img src="https://i.imgur.com/51DrStx.jpg" width="120">](https://vk.com/oleglivanovgaming) |
|-|-|-|
| [<img src="https://i.imgur.com/pra7Wez.jpg" height="120">](https://vk.com/tavernofoverwatch) | [<img src="https://i.imgur.com/2RR0fXh.png" height="120">](https://vk.com/panzer_sofa) | [<img src="https://i.imgur.com/51DrStx.jpg" height="120">](https://vk.com/oleglivanovgaming) | [<img src="https://i.imgur.com/FnBpfyl.jpg" height="120">](https://vk.com/ongoing_research) |
|-|-|-|-|
## What content does it forward?

@@ -61,8 +69,8 @@

## Free usage
If you want to test this code, or to use on a regular basis(beta, works via heroku), please [contact](#contact) me for details.
If you want to test this code, or to use on a regular basis(beta, works via heroku), please [contact](#contact) me for setup. It's simple ;)
## Variables
|Variable|Type|Required|Description|

@@ -89,7 +97,8 @@ |-|-|-|-|

* DON'T forget to pick in your vk group api dashboard event type 'WALL POST - NEW'.
* Recommend to use vk api v5.71
* Recommend to use vk api **v5.71**
## Contact
Here's a telegram [group](https://t.me/vktotgforwarder) ¯\\_(ツ)_/¯
Also u can write to me directly in [Telegram](https://t.me/ejnshtein),
[VK](https://vk.com/lbmmbr001) or by [mail](mailto:ejnshtein@dsgstng.com)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc