Open vbauer opened 8 years ago
I have seen this error and the one noted in #79 as well. Have not had a chance to look into it yet. Can confirm that both do occur on occasions
Unfortunately, I do not see the connection between them.. Errors occur spontaneously.
Having the same problem as well. Sending the following messages to a bot /cmd param
or text /cmd
results in:
if (msg.message.text && msg.message.text.charAt(0) === '/') {
^
TypeError: Cannot read property 'text' of undefined
at /home/user/path/to/node_modules/node-telegram-bot/lib/Bot.js:221:32
at Array.forEach (native)
at Request._callback (/home/user/path/to/node_modules/node-telegram-bot/lib/Bot.js:216:23)
at Request.self.callback (/home/user/path/to/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/user/path/to/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/home/user/path/to/node_modules/request/request.js:1091:12)
i change my bot and problem automatically fixed! why?