Closed simonnarang closed 8 years ago
In 0.4.1?
Response to which request?
Yes in the latest version
I mean the last thing the bot sent to the user
like lastMessage
but for the bot, not the user.
I guess this needs to be tracked by the bot itself. Once it's sent it's gone. :) Also, bot can send different types of content to user, not only text, so it's hard to support this at library level.
Something like:
sessions[bot.lastMessage.chat.id] = "last phrase I sent"
I'll add sqlite example soon with example how data can be persisted in database.
Ok thanks
😅 Haven't been able to find it