Output original name in telegram_api::to_string.

This commit is contained in:
levlam 2021-11-21 21:29:43 +03:00
parent 743a30d470
commit 5e34f07641

View File

@ -301,6 +301,13 @@ std::string TD_TL_writer_cpp::get_pretty_field_name(std::string field_name) cons
}
std::string TD_TL_writer_cpp::get_pretty_class_name(std::string class_name) const {
if (tl_name != "mtproto_api") {
for (std::size_t i = 0; i < class_name.size(); i++) {
if (class_name[i] == '_') {
class_name[i] = '.';
}
}
}
return class_name;
}