From dba73e412dd837db09028ad1bdb2ddb5f199f1b9 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 12 Feb 2017 15:14:05 +0100 Subject: Remove page, category functionality as it is now provided by `tree.kummerlaender.eu` --- pages/projects/telebot.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 pages/projects/telebot.md (limited to 'pages/projects/telebot.md') diff --git a/pages/projects/telebot.md b/pages/projects/telebot.md deleted file mode 100644 index 3f2d2f8..0000000 --- a/pages/projects/telebot.md +++ /dev/null @@ -1,34 +0,0 @@ -# Telebot - -…is a basic Chicken Scheme module to ease the development of Bots interfacing with the Telegram Bot API. - -In this context _basic_ means that the module currently consists of barely more than raw HTTP API calls hidden behind analogously named functions and JSON deserialization provided by the _http-client_ respectively _medea_ eggs. - -The maintanance of these API wrappers is simplified by an appropriate _Scheme_ macro that reduces the implementation of new API methods to basically slightly rewriting the [documentation]. - -_Telebot_ is available under the terms of the MIT license on [Github] and [cgit]. - -## Documentation - -All _basic_ API wrappers are named the same as their method name and require the bot's token as their first argument. Further parameters are expected as named key value pairs. Note that the library currently only verifies that all required parameters are supplied at all while type verification is left to _Telegram's_ server side logic. - -```lisp -(sendMessage token - chat_id: chat_id - text: text) -``` - -All API wrappers return the raw deserialized JSON results as to not limit the options for further parsing unnecessarily. - -The only non-API wrapper provided by this library is `pollUpdates` which enables passing updates acquired via long polling of `getUpdates` to an arbitrary function as follows: - -```lisp -(pollUpdates token - (lambda (u) - (begin (print-message u) - (echo-message u)))) -``` - -[documentation]: https://core.telegram.org/bots/api -[Github]: https://github.com/KnairdA/telebot/ -[cgit]: https://code.kummerlaender.eu/Telebot/ -- cgit v1.2.3