aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-01Merge pull request #2 from recumbentbirder/clean-message-checkHEADmasterAdrian Kummerländer
Abstract 'is-message?': returns #t for message and edited_message
2018-04-30Abstract 'is-message?': returns #t for message and edited_messageChristoph Lange
- in 'resolve-query': return '() instead of default #f from 'alist-ref': this way it doesn't fail when passed to 'fold' and didn't find anything, which expects a list and not a boolean; cleaner also: always returns what it found, even if it's nothing (empty list) - then: check for '() instead of #f - change 'update-predicate' to expect a list of lists: e.g. the update can have _either_ (message text) _or_ (edited_message text) to be a message of type text
2018-04-22Merge pull request #1 from recumbentbirder/update-checksAdrian Kummerländer
Update checks
2018-04-20Change 'update-predicate' to reach deeper into updateChristoph Lange
Using 'resolve-query' instead of pure alist-type, we can reach deeper into the update. Added: - is-text? - is-location? using this. NB: since I use 'message' as key, those will fail when applied on e.g. 'updated_message'. Work left to do.
2018-04-20Make 'resolve-query' available via the moduleChristoph Lange
2018-04-19is-edited_message? -- check if message is editedChristoph Lange
2017-01-01Add slideshow bot exampleAdrian Kummerlaender
Remote controls `geeqie`. Written for my family's new year's eve holiday photo viewing.
2016-04-14Implemented new methods added in Bot API 2.0Adrian Kummerlaender
The new parameter mode of the `editMessage*` methods where one parameter of a set of parameters is required is currently not supported by `wrap-api-method`.
2016-03-17Document implemented API methodsAdrian Kummerlaender
2016-03-17Update README.mdAdrian Kummerlaender
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-15Wrap `answerInlineQuery` API methodAdrian Kummerlaender
2016-03-15Add update type predicatesAdrian Kummerlaender
2016-03-14Use appropriate function for update query in `pollUpdates`Adrian Kummerlaender
2016-03-14Add documentation section to README.mdAdrian Kummerlaender
2016-03-14Implement distinction between required and optional API parametersAdrian Kummerlaender
2016-03-13Add README.mdAdrian Kummerlaender
2016-03-13Add extension build and install instructionsAdrian Kummerlaender
2016-03-13Implement further non-inline API methodsAdrian Kummerlaender
2016-03-13Move basic update polling into `pollUpdates` framework functionAdrian Kummerlaender
2016-03-12Remove unnecessary complexity in demo bot message parsing logicAdrian Kummerlaender
2016-03-11Remove reply parameter from echo-bot exampleAdrian Kummerlaender
2016-03-11Simplify JSON result interpretation logicAdrian Kummerlaender
2016-03-10Implement simple inefficient echo botAdrian Kummerlaender
2016-03-10Implement `sendLocation`Adrian Kummerlaender
2016-03-10Implement `sendChatAction`Adrian Kummerlaender
2016-03-10Implement `getUserProfilePhotos`Adrian Kummerlaender
2016-03-10Implement macro to automatically generate the basic API wrapperAdrian Kummerlaender
2016-03-10Add missing parameters of `getUpdates` and `(send|forward)Message`Adrian Kummerlaender
Switch to Chicken's `#!key` parameters for better readability and flexibility due to named parameters.
2016-03-10Implement `forwardMessage`Adrian Kummerlaender
2016-03-10Basic example query of the Telegram Bot API using SchemeAdrian Kummerlaender