Skip to content

Commit

Permalink
Update Error Handling README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
baderouaich authored Oct 22, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f149c3f commit 5738220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ErrorHandling/README.md
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class MyBot : public Bot {
std::cerr << "Long poll error: " << reason << std::endl;
}

void onAnyMessage(const Ptr<Message>& msg) override try {
void onAnyMessage(const Ptr<Message>& msg) override {
try {
// Your logic
api()->sendMessage(msg->chat->id, "Possible failure");

0 comments on commit 5738220

Please sign in to comment.