From 5154dabd17c44a1686aaa751c0c2ba61ae3b2413 Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Sat, 20 Apr 2024 15:29:59 +0200 Subject: Update samples to API 7.0 --- samples/reply-keyboard/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samples/reply-keyboard/src/main.cpp') 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()); -- cgit v1.2.3