diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2015-08-12 13:43:02 +0300 |
---|---|---|
committer | Oleg Morozenkov <omorozenkov@gmail.com> | 2015-08-12 13:43:02 +0300 |
commit | e3490d65bb824a9b4ee0fdc0872753fa295b1087 (patch) | |
tree | 0f61ecf6dd0e592c2390a8a93e3794dade2360f8 /README.md | |
parent | 7b3fa406eb228a00ef9f053bd2177d53b61b1d3d (diff) |
Fix some compiler errors with global header file
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) {
|