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
events.js:174
throw er; // Unhandled 'error' event
^
Error: From not present but not sent on channel
at Message.parse (/home/masbenny/shell-bot/node_modules/botgram/lib/model.js:45:45)
at Message.update (/home/masbenny/shell-bot/node_modules/botgram/lib/model.js:472:36)
at Message.parse (/home/masbenny/shell-bot/node_modules/botgram/lib/model.js:89:29)
at Bot.processMessage (/home/masbenny/shell-bot/node_modules/botgram/lib/message.js:28:35)
at Bot.processUpdate (/home/masbenny/shell-bot/node_modules/botgram/lib/bot.js:250:19)
at Array.forEach (<anonymous>)
at Bot.<anonymous> (/home/masbenny/shell-bot/node_modules/botgram/lib/bot.js:218:12)
at handleBody (/home/masbenny/shell-bot/node_modules/botgram/lib/bot.js:157:25)
at IncomingMessage.<anonymous> (/home/masbenny/shell-bot/node_modules/botgram/lib/bot.js:146:33)
at IncomingMessage.emit (events.js:203:15)
Emitted 'error' event at:
at Bot.processMessage (/home/masbenny/shell-bot/node_modules/botgram/lib/message.js:32:10)
at Bot.processUpdate (/home/masbenny/shell-bot/node_modules/botgram/lib/bot.js:250:19)
[... lines matching original stack trace ...]
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
The text was updated successfully, but these errors were encountered:
if (msg.from !== undefined) {
this.from = new Chat().parseUser(msg.from, options);
delete msg.from;
} /*else {
if (this.chat.type !== "channel") throw new Error("From not present but not sent on channel");
this.from = this.chat;
}*/
masbenny@home:~/shell-bot$ node server
The text was updated successfully, but these errors were encountered: