mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-07-23 23:31:04 +02:00
Added back the 'method not found' part.
As this will also be the error message if you do /bot1231:23123/fooBarXYZ, this should still keep the 'method not found' part.
This commit is contained in:
parent
7e86d31953
commit
a497ebc544
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user