diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 8c63c625..80ec46c8 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -2189,7 +2189,7 @@ class Portal(DBPortal, BasePortal): and isinstance(update.message.action, MessageActionChatEditPhoto) ) if is_photo_update: - loc, size = self._get_largest_photo_size(update.message.action.photo) + loc, size = self._msg_conv.get_largest_photo_size(update.message.action.photo) self.photo_id = str(loc.id) await self.save() break