From 68d18bbc2cd9f496a4f00bfb312e87263c5f6cc7 Mon Sep 17 00:00:00 2001 From: Bader Date: Sun, 22 Oct 2023 22:32:02 +0100 Subject: [PATCH] added sendPoll example to send quiz and voting polls fix repeated word in command description /quiz --- examples/sendPoll/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sendPoll/main.cpp b/examples/sendPoll/main.cpp index 11ce2a9ae..d155acb92 100644 --- a/examples/sendPoll/main.cpp +++ b/examples/sendPoll/main.cpp @@ -20,7 +20,7 @@ class PollBot : public Bot { pollCmd->description = "Receive a voting poll"; Ptr quizCmd(new BotCommand()); quizCmd->command = "/quiz"; - quizCmd->description = "Receive a quiz quiz"; + quizCmd->description = "Receive a quiz"; api()->setMyCommands({pollCmd, quizCmd}); std::cout << "Bot " << api()->getMe()->username << " Started\n"; @@ -86,7 +86,7 @@ class PollBot : public Bot { int main(int argc, const char *argv[]) { if (argc < 2) { - std::cerr << "Usage:\nphoto_bot \"BOT_TOKEN\"\n"; + std::cerr << "Usage:\nsend_poll_bot \"BOT_TOKEN\"\n"; return EXIT_FAILURE; }