diff options
Diffstat (limited to 'samples/reply-keyboard/src')
-rw-r--r-- | samples/reply-keyboard/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/reply-keyboard/src/main.cpp b/samples/reply-keyboard/src/main.cpp index 9478368..877302b 100644 --- a/samples/reply-keyboard/src/main.cpp +++ b/samples/reply-keyboard/src/main.cpp @@ -54,10 +54,10 @@ int main() { }, keyboardWithLayout); bot.getEvents().onCommand("start", [&bot, &keyboardOneCol](Message::Ptr message) { - bot.getApi().sendMessage(message->chat->id, "/start for one column keyboard\n/layout for a more complex keyboard", false, 0, keyboardOneCol); + bot.getApi().sendMessage(message->chat->id, "/start for one column keyboard\n/layout for a more complex keyboard", nullptr, nullptr, keyboardOneCol); }); bot.getEvents().onCommand("layout", [&bot, &keyboardWithLayout](Message::Ptr message) { - bot.getApi().sendMessage(message->chat->id, "/start for one column keyboard\n/layout for a more complex keyboard", false, 0, keyboardWithLayout); + bot.getApi().sendMessage(message->chat->id, "/start for one column keyboard\n/layout for a more complex keyboard", nullptr, nullptr, keyboardWithLayout); }); bot.getEvents().onAnyMessage([&bot](Message::Ptr message) { printf("User wrote %s\n", message->text.c_str()); |