Improve source in get_dimensions.

This commit is contained in:
levlam 2021-08-03 01:57:46 +03:00
parent 9e7bce1b06
commit 48ce26b6c2

View File

@ -77,7 +77,8 @@ Document DocumentsManager::on_get_document(RemoteDocument remote_document, Dialo
switch (attribute->get_id()) {
case telegram_api::documentAttributeImageSize::ID: {
auto image_size = move_tl_object_as<telegram_api::documentAttributeImageSize>(attribute);
dimensions = get_dimensions(image_size->w_, image_size->h_, "documentAttributeImageSize");
dimensions =
get_dimensions(image_size->w_, image_size->h_, oneline(to_string(remote_document.document)).c_str());
break;
}
case telegram_api::documentAttributeAnimated::ID: