From c1bd82ffddecee08203aef8d3e5bfea41b9300d6 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 20 Jan 2022 00:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20GzipPacked:=20Fix=20attr=20get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyrogram/raw/core/gzip_packed.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyrogram/raw/core/gzip_packed.py b/pyrogram/raw/core/gzip_packed.py index a2750eab..fe093f31 100644 --- a/pyrogram/raw/core/gzip_packed.py +++ b/pyrogram/raw/core/gzip_packed.py @@ -59,3 +59,8 @@ class GzipPacked(TLObject): ) return b.getvalue() + + def __getattr__(self, item): + if item == "packed_data": + return self.packed_data + return getattr(self.packed_data, item)