Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
:: (Eq conversation, Hashable conversation) | |
=> (Update -> Maybe conversation) | How to disambiguate conversations. |
-> BotApp model action | |
-> BotApp (HashMap (Maybe conversation) model) (Maybe conversation, action) |
Make bot to have a separate state for each conversation.
Common use (to have a separate state for each chat):
conversationBot
updateChatId
bot