You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to be node v6 error.
Gettign this error when trying to send photo as stream : bot.sendPhoto(id,stream)
Error:
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.basename (path.js:1355:5)
at TelegramBot._formatSendData (/srv/http/bot/node_modules/node-telegram-bot-api/lib/telegram.js:350:35)
at TelegramBot.sendPhoto (/srv/http/bot/node_modules/node-telegram-bot-api/lib/telegram.js:407:26)
at onWidthFound (/srv/http/bot/watermark.js:37:11)
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:1
```2
The text was updated successfully, but these errors were encountered:
Seems to be node v6 error.
Gettign this error when trying to send photo as stream :
bot.sendPhoto(id,stream)
Error:
The text was updated successfully, but these errors were encountered: