From 99072def67e54d664edd96b9c0f124c4f09cedee Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Wed, 29 Jul 2015 14:45:45 +0300 Subject: Fix includes + fix some minor bugs --- samples/echobot/src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'samples') diff --git a/samples/echobot/src/main.cpp b/samples/echobot/src/main.cpp index 7b8d880..61f4019 100644 --- a/samples/echobot/src/main.cpp +++ b/samples/echobot/src/main.cpp @@ -26,8 +26,6 @@ #include #include -#include -#include using namespace std; using namespace TgBot; @@ -52,7 +50,6 @@ int main() { bot.getApi().sendMessage(message->chat->id, "Your message is: " + message->text); }); - printf("try {\n"); try { printf("Bot username: %s\n", bot.getApi().getMe()->username.c_str()); @@ -61,10 +58,9 @@ int main() { printf("Long poll started\n"); longPoll.start(); } - } catch (TgException& e) { + } catch (exception& e) { printf("error: %s\n", e.what()); } - printf("}\n"); return 0; } -- cgit v1.2.3