Skip to content

Commit

Permalink
added sendPoll example to send quiz and voting polls
Browse files Browse the repository at this point in the history
fix repeated word in command description /quiz
  • Loading branch information
baderouaich committed Oct 22, 2023
1 parent ac8fa98 commit 68d18bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sendPoll/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PollBot : public Bot {
pollCmd->description = "Receive a voting poll";
Ptr<BotCommand> 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";
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 68d18bb

Please sign in to comment.