summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-01-08 01:07:59 +0300
committerGitHub <noreply@github.com>2017-01-08 01:07:59 +0300
commit429dd74b583e0ac52d50142be493cba532ca017d (patch)
tree47ac65e1e333b2ccb23da0572c3c2b89935a3619
parent2ab51b67ff9ee36f448bf64361c842b73a6099ea (diff)
Fix README.md
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 9e0b971..24bd589 100644
--- a/README.md
+++ b/README.md
@@ -36,10 +36,10 @@ Simple echo bot which sends everything it recieves:
int main() {
TgBot::Bot bot("PLACE YOUR TOKEN HERE");
- bot.getEvents().onCommand("start", [&bot](Message::Ptr message) {
+ bot.getEvents().onCommand("start", [&bot](TgBot::Message::Ptr message) {
bot.getApi().sendMessage(message->chat->id, "Hi!");
});
- bot.getEvents().onAnyMessage([&bot](Message::Ptr message) {
+ bot.getEvents().onAnyMessage([&bot](TgBot::Message::Ptr message) {
printf("User wrote %s\n", message->text.c_str());
if (StringTools::startsWith(message->text, "/start")) {
return;