diff --git a/td/telegram/PhotoSize.cpp b/td/telegram/PhotoSize.cpp index 4bc43aa3c..673821b5d 100644 --- a/td/telegram/PhotoSize.cpp +++ b/td/telegram/PhotoSize.cpp @@ -453,7 +453,8 @@ bool operator<(const PhotoSize &lhs, const PhotoSize &rhs) { } StringBuilder &operator<<(StringBuilder &string_builder, const PhotoSize &photo_size) { - return string_builder << "{type = " << photo_size.type << ", dimensions = " << photo_size.dimensions + char type = 32 <= photo_size.type && photo_size.type <= 127 ? static_cast(photo_size.type) : '?'; + return string_builder << "{type = " << type << ", dimensions = " << photo_size.dimensions << ", size = " << photo_size.size << ", file_id = " << photo_size.file_id << ", progressive_sizes = " << photo_size.progressive_sizes << "}"; }