Closed dleonext closed 8 years ago
@dleonext Hi! waitForRequest not a function, its a property, so you must use it like this:
$.waitForRequest
.then($ => {
})
@Naltox thanks for the reply! I think there's a lack of documentation here...
waitForRequest Messages controller scope has waitForRequest method after calling that the next update from current user will be passed to promise.
cheers.
Hello! I'm getting this error that I never got before. I just updated to the newer version of telegram-node-bot.
error TypeError: $.waitForRequest is not a function
The strange thing is that I can use the
$.sendMessage
in the same context .Cheers.