diff --git a/pyrogram/api/core/object.py b/pyrogram/api/core/object.py index 21bd7c3f..d54d0327 100644 --- a/pyrogram/api/core/object.py +++ b/pyrogram/api/core/object.py @@ -78,7 +78,7 @@ class Encoder(JSONEncoder): if o is not None: if o.startswith("pyrogram.client"): r = remove_none(OrderedDict([("_", name)] + [i for i in content.items()])) - r.pop("client", None) + r.pop("_client", None) return r else: