vk-to-telegram
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -135,3 +135,2 @@ const forwarder = require('./lib/forwarder') | ||
} | ||
console.log(herokuPosts) | ||
if (this.debug) {debug('heroku Obj: %p', herokuPosts) } | ||
@@ -138,0 +137,0 @@ if (this.fromId ? body.object.from_id !== this.fromId : false) { |
@@ -151,3 +151,3 @@ const Telegram = require('telegraf/telegram') | ||
type: 'photo', | ||
post: { | ||
media: { | ||
url: utils.photo.getHQ(attachments[i].photo) | ||
@@ -160,2 +160,3 @@ }, | ||
} | ||
console.log(photosArray) | ||
if (photosArray.length === 1) { | ||
@@ -162,0 +163,0 @@ posts.push(telegram.sendPhoto(chatId, photosArray[0].post.url, mediaExtra)) |
{ | ||
"name": "vk-to-telegram", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Vk to telegram forwarder", | ||
@@ -5,0 +5,0 @@ "author": "ejnshtein", |
@@ -8,3 +8,3 @@ const vkToTelegram = require('./') | ||
signed: '👨', | ||
heroku: true, | ||
heroku: false, | ||
debug: true, | ||
@@ -25,3 +25,5 @@ prependText: '#overwatch', | ||
.then(console.log) | ||
.catch(console.log) | ||
.catch(err => { | ||
console.log(JSON.stringify(err)) | ||
}) | ||
}) | ||
@@ -28,0 +30,0 @@ // app.post('/', (req, res) => { |
47733
862