diff --git a/td/telegram/Photo.cpp b/td/telegram/Photo.cpp index 79d19bfbb..51e657011 100644 --- a/td/telegram/Photo.cpp +++ b/td/telegram/Photo.cpp @@ -86,8 +86,8 @@ td_api::object_ptr get_minithumbnail_object(const string .move_as_ok(); static const string footer = base64_decode("/9k=").move_as_ok(); auto result = td_api::make_object(); - result->width_ = static_cast(packed[1]); - result->height_ = static_cast(packed[2]); + result->height_ = static_cast(packed[1]); + result->width_ = static_cast(packed[2]); result->data_ = PSTRING() << header.substr(0, 164) << packed[1] << header[165] << packed[2] << header.substr(167) << packed.substr(3) << footer; return result;