vk-to-telegram
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -107,3 +107,3 @@ const forward = require('./lib/forwarder') | ||
}) | ||
.then(() => vkapi.wall.getById(`${body.object.owner_id}_${body.object.id}`,{ | ||
.then(() => vkapi.wall.getById(`${body.object.owner_id}_${body.object.id}`, { | ||
copy_history_depth: 1 | ||
@@ -110,0 +110,0 @@ })) |
@@ -100,3 +100,3 @@ const Telegram = require('telegraf/telegram') | ||
text: entities.decode(attachments[0].album.title), | ||
url: `https://vk.com/album'${attachments[0].album.owner_id}_${attachments[0].album.id}` | ||
url: `https://vk.com/album${attachments[0].album.owner_id}_${attachments[0].album.id}` | ||
}]) | ||
@@ -103,0 +103,0 @@ messageExtra.disable_web_page_preview = false |
@@ -197,14 +197,14 @@ const Telegram = require('telegraf/telegram') | ||
case 'YouTube': // https://www.youtube.com/embed/qLQr0VrMVQk?__ref=vk.api -> https://www.youtube.com/watch?v=tyHAI-70DSg | ||
apivideo.player = `https://youtube.com/watch?v=${apivideo.player.match(/https:\/\/www\.youtube\.com\/embed\/(\S+)\?/i)[1]}` | ||
video.player = `https://youtube.com/watch?v=${apivideo.player.match(/https:\/\/www\.youtube\.com\/embed\/(\S+)\?/i)[1]}` | ||
break | ||
case 'Vimeo': // https://player.vimeo.com/video/231140379?__ref=vk.api -> https://vimeo.com/231140379 | ||
apivideo.player = `https://vimeo.com/${apivideo.player.match(/https:\/\/player\.vimeo\.com\/video\/(\S+)\?/i)[1]}` | ||
video.player = `https://vimeo.com/${apivideo.player.match(/https:\/\/player\.vimeo\.com\/video\/(\S+)\?/i)[1]}` | ||
break | ||
case undefined: // vk | ||
vk = true | ||
apivideo.player = `https://vk.com/video${apivideo.owner_id}_${apivideo.id}` | ||
video.player = `https://vk.com/video${apivideo.owner_id}_${apivideo.id}` | ||
break | ||
default: | ||
vk = true | ||
apivideo.player = `https://vk.com/video${apivideo.owner_id}_${apivideo.id}` | ||
video.player = `https://vk.com/video${apivideo.owner_id}_${apivideo.id}` | ||
break | ||
@@ -211,0 +211,0 @@ } |
{ | ||
"name": "vk-to-telegram", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Vk to telegram forwarder", | ||
@@ -5,0 +5,0 @@ "author": "ejnshtein", |
57296