aboutsummaryrefslogtreecommitdiff
path: root/pages/projects/telebot.md
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-01-17 20:44:31 +0100
committerAdrian Kummerlaender2017-01-17 20:44:31 +0100
commit9bb990c9a663edc43aebb87ed84b00e6d90685c0 (patch)
treefcb40f5c4f94f7e1b89d3495a20d82e4cbd6db90 /pages/projects/telebot.md
parentb84e7973d91e066aa3c0e9e5660e30401916fd5f (diff)
downloadblog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.gz
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.bz2
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.lz
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.xz
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.tar.zst
blog_content-9bb990c9a663edc43aebb87ed84b00e6d90685c0.zip
Update markdown syntax to use pandoc's peculiarities
Diffstat (limited to 'pages/projects/telebot.md')
-rw-r--r--pages/projects/telebot.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/pages/projects/telebot.md b/pages/projects/telebot.md
index a29e27e..3f2d2f8 100644
--- a/pages/projects/telebot.md
+++ b/pages/projects/telebot.md
@@ -12,24 +12,22 @@ _Telebot_ is available under the terms of the MIT license on [Github] and [cgit]
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)
-~~~
-{:.language-lisp}
+```
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))))
-~~~
-{:.language-lisp}
+```
[documentation]: https://core.telegram.org/bots/api
[Github]: https://github.com/KnairdA/telebot/