Skip to content

Commit

Permalink
Added back the 'method not found' part.
Browse files Browse the repository at this point in the history
As this will also be the error message if you do /bot1231:23123/fooBarXYZ, this should still keep the 'method not found' part.
  • Loading branch information
luckydonald committed Jan 21, 2021
1 parent 7e86d31 commit a497ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram-bot-api/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6575,7 +6575,7 @@ void Client::on_cmd(PromisedQueryPtr query) {
} else if (query->method() == "registeruser" && parameters_->allow_users_registration_) {
return process_register_user_query(query);
} else {
return fail_query(404, "Not Found: login not yet completed", std::move(query));
return fail_query(404, "Not Found: method not found or login not yet completed", std::move(query));
}
}

Expand Down

0 comments on commit a497ebc

Please sign in to comment.