vk to telegram forwarder
Powered by Telegraf
What is this?
It is a tool for express who via using VK callback api group forwards posts in channel or chat in Telegram!
Be careful, it doesn't send audio and poll's(maybe fix soon).
Where I can see how it looks?
For example, this code sending posts from Tavern of Heroes | Overwatch to Telegram channel Tavern of Overwatch | News;
from Oleg Livanov - One man army trought Heroku to Telegram channel Oleg Livanov - One man army
Installation
npm install vk-to-telegram@latest --save
Example
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())
app.post('/', vkToTg.send)
app.listen(80,()=>{
console.log('listening on port 80')
})
Variables
Why?
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. ᕦ( ͡° ͜ʖ ͡°)ᕤ