From 1f8b59043b033476b2d5bf1a0e9b2bc8440511ca Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Wed, 18 Jan 2023 11:37:56 -0500 Subject: [PATCH] Change maximum photo size to 2560px (#4024) --- telethon/client/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index a27d2895..fa18f646 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -36,7 +36,7 @@ class _CacheType: def _resize_photo_if_needed( - file, is_image, width=1280, height=1280, background=(255, 255, 255)): + file, is_image, width=2560, height=2560, background=(255, 255, 255)): # https://github.com/telegramdesktop/tdesktop/blob/12905f0dcb9d513378e7db11989455a1b764ef75/Telegram/SourceFiles/boxes/photo_crop_box.cpp#L254 if (not is_image