| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Telegram.Bot.Simple.Conversation
Documentation
Arguments
| :: (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):
conversationBotupdateChatIdbot