summaryrefslogtreecommitdiff
path: root/samples/reply-keyboard/src/main.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2024-06-11 00:42:07 +0300
committerGitHub <noreply@github.com>2024-06-11 00:42:07 +0300
commit986a7b5242182614c25404bfef75fb09a762a8c1 (patch)
treec18de405b668687683ce811fde777394821b6d06 /samples/reply-keyboard/src/main.cpp
parent0910c166a920cdac931d40bcb63bfb28039005f1 (diff)
parent283cc4ba4670ed5546f007ec1a85b3fab40e6d6a (diff)
Merge pull request #300 from llnulldisk/master
Update to Bot API 7.2
Diffstat (limited to 'samples/reply-keyboard/src/main.cpp')
-rw-r--r--samples/reply-keyboard/src/main.cpp4
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());