Merge branch 'tdlib:master' into master

This commit is contained in:
giuseppeM99 2021-12-07 15:53:17 +01:00 committed by GitHub
commit 9a1b509a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4439,12 +4439,12 @@ void Client::check_chat(Slice chat_id_str, AccessRights access_rights, PromisedQ
template <class OnSuccess> template <class OnSuccess>
void Client::check_chat_no_fail(Slice chat_id_str, PromisedQueryPtr query, OnSuccess on_success) { void Client::check_chat_no_fail(Slice chat_id_str, PromisedQueryPtr query, OnSuccess on_success) {
if (chat_id_str.empty()) { if (chat_id_str.empty()) {
return fail_query(400, "Bad Request: sedner_chat_id is empty", std::move(query)); return fail_query(400, "Bad Request: sender_chat_id is empty", std::move(query));
} }
auto r_chat_id = td::to_integer_safe<int64>(chat_id_str); auto r_chat_id = td::to_integer_safe<int64>(chat_id_str);
if (r_chat_id.is_error()) { if (r_chat_id.is_error()) {
return fail_query(400, "Bad Request: sedner_chat_id is not a valid Integer", std::move(query)); return fail_query(400, "Bad Request: sender_chat_id is not a valid Integer", std::move(query));
} }
auto chat_id = r_chat_id.move_as_ok(); auto chat_id = r_chat_id.move_as_ok();