Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vk-to-telegram

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vk-to-telegram

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

  • 0.0.2-a
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

VK TO TELEGRAM SENDER

Powered by 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 install git+https://github.com/ejnshtein/vk-to-telegram.git

Soon i'll push it to npm package

And now a bit 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()) // 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')
})  

Variables from example

VariableRequiredDescription
tokenYesBot token from Botfather
chatNameYesTelegram channel or group link, like '@tavernofheroes' but without @!!!
ownerIdYesYour telegram id for sending error if they are. U can get know it from @getidsbot
vkConfirmationYesConfirmation string from ur group callback api server:
vkTokenYesFollow 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!!!
fromIdOptionalVK group id with '-'in start or nothing, if you don't need check.

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. AND It's free, yeah ( ͡° ͜ʖ ͡°)

FAQs

Package last updated on 27 Feb 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc