aboutsummaryrefslogtreecommitdiff
path: root/example
AgeCommit message (Collapse)Author
2016-03-16Implement conversation-manager pattern framework functionAdrian Kummerlaender
The _conversation-manager_ pattern previously tested in the _guess_ example game should be useful for other kinds of use cases and as such was moved into the module. `make-conversation-manager` maintains an internal hash table of per-conversation (i.e. chat-ids) closures constructed by the provided constructor function. Thus bot implementations such as the _guess_ game example only need to instantiate a conversation-manager, call it via e.g. `poll-updates` and implement the actual conversation logic in a custom conversation closure. Telebot's framework function names are now consistently separated by minuses instead of capital letters.
2016-03-16Move _guess_ example greeting to conversation closure constructorAdrian Kummerlaender
2016-03-16Simplified _guess_ example loggingAdrian Kummerlaender
2016-03-15Implement simple number guessing game exampleAdrian Kummerlaender
2016-03-15Add update type predicatesAdrian Kummerlaender
2016-03-13Add extension build and install instructionsAdrian Kummerlaender