Return back check_utf8 in parseTextEntities.

This commit is contained in:
levlam 2023-10-30 16:39:24 +03:00
parent 841a6b5e45
commit 24b09ce83d

View File

@ -9132,7 +9132,7 @@ td_api::object_ptr<td_api::Object> Td::do_static_request(const td_api::getTextEn
} }
td_api::object_ptr<td_api::Object> Td::do_static_request(td_api::parseTextEntities &request) { td_api::object_ptr<td_api::Object> Td::do_static_request(td_api::parseTextEntities &request) {
if (!clean_input_string(request.text_)) { if (!check_utf8(request.text_)) { // must not use clean_input_string, because \r may be used as a separator
return make_error(400, "Text must be encoded in UTF-8"); return make_error(400, "Text must be encoded in UTF-8");
} }
if (request.parse_mode_ == nullptr) { if (request.parse_mode_ == nullptr) {