From 59d85a1e162a65d061976c9f7acc152d84b50682 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 22 Jun 2022 12:35:58 +0300 Subject: [PATCH] Fix incorrect method call --- mautrix_telegram/portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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