summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-08-12 13:43:02 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-08-12 13:43:02 +0300
commite3490d65bb824a9b4ee0fdc0872753fa295b1087 (patch)
tree0f61ecf6dd0e592c2390a8a93e3794dade2360f8 /README.md
parent7b3fa406eb228a00ef9f053bd2177d53b61b1d3d (diff)
Fix some compiler errors with global header file
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index d17acb2..7e7af57 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# tgbot-cpp
-
-[![Join the chat at https://gitter.im/reo7sp/tgbot-cpp](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/reo7sp/tgbot-cpp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+
+[![Join the chat at https://gitter.im/reo7sp/tgbot-cpp](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/reo7sp/tgbot-cpp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
C++ library for Telegram bot API.
@@ -29,6 +29,9 @@ That's all. All you have to do now is just link compiled library to your project
Simple echo bot which sends everything it recieves:
```cpp
+#include <stdio.h>
+#include <tgbot/tgbot.h>
+
int main() {
TgBot::Bot bot("PLACE YOUR TOKEN HERE");
bot.getEvents().onCommand("start", [&bot](Message::Ptr message) {