diff --git a/td/generate/tl_writer_cpp.cpp b/td/generate/tl_writer_cpp.cpp index 9853d5130..adb9b7e8e 100644 --- a/td/generate/tl_writer_cpp.cpp +++ b/td/generate/tl_writer_cpp.cpp @@ -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; }