seniv / vk-tg-bot

A Telegram bot that sends messages from vk.com to you in Telegram and vice versa
https://seniv.github.io/vk-tg-bot/
121 stars 19 forks source link

(node:32) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'link_ogg' of undefined #6

Closed ghost closed 6 years ago

ghost commented 6 years ago

(node:32) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'link_ogg' of undefined at parseAttachments (/home/psh/vk-tg-bot/tkbot.js:267:77) at app.telegram.sendMessage.then (/home/psh/vk-tg-bot/tkbot.js:255:15) at at process._tickCallback (internal/process/next_tick.js:118:7) (node:32) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:32) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ghost commented 6 years ago

ошибка видимо связана с сообщениями от групп.