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/inline-keyboard/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'samples/inline-keyboard') diff --git a/samples/inline-keyboard/src/main.cpp b/samples/inline-keyboard/src/main.cpp index 2e3ec68..b84d363 100644 --- a/samples/inline-keyboard/src/main.cpp +++ b/samples/inline-keyboard/src/main.cpp @@ -25,16 +25,16 @@ int main() { keyboard->inlineKeyboard.push_back(row0); bot.getEvents().onCommand("start", [&bot, &keyboard](Message::Ptr message) { - bot.getApi().sendMessage(message->chat->id, "Hi!", false, 0, keyboard); + bot.getApi().sendMessage(message->chat->id, "Hi!", nullptr, nullptr, keyboard); }); bot.getEvents().onCommand("check", [&bot, &keyboard](Message::Ptr message) { string response = "ok"; - bot.getApi().sendMessage(message->chat->id, response, false, 0, keyboard, "Markdown"); + bot.getApi().sendMessage(message->chat->id, response, nullptr, nullptr, keyboard, "Markdown"); }); bot.getEvents().onCallbackQuery([&bot, &keyboard](CallbackQuery::Ptr query) { if (StringTools::startsWith(query->data, "check")) { string response = "ok"; - bot.getApi().sendMessage(query->message->chat->id, response, false, 0, keyboard, "Markdown"); + bot.getApi().sendMessage(query->message->chat->id, response, nullptr, nullptr, keyboard, "Markdown"); } }); -- cgit v1.2.3