diff options
author | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2024-04-20 15:29:59 +0200 |
---|---|---|
committer | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2024-04-20 15:29:59 +0200 |
commit | 5154dabd17c44a1686aaa751c0c2ba61ae3b2413 (patch) | |
tree | 9275227ee8791ce3d0b3539dcad7294aeca4cac0 /samples/inline-keyboard | |
parent | 261f27b534aecbe23e635dcff42ec34406a73759 (diff) |
Update samples to API 7.0
Diffstat (limited to 'samples/inline-keyboard')
-rw-r--r-- | samples/inline-keyboard/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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"); } }); |