diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 6c3dcb27..acaf9731 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -489,7 +489,7 @@ def start(format: bool = False): docstring=docstring, slots=slots, id=c.id, - qualname=f"pyrogram.raw.{c.section}.{c.qualname}", + qualname=f"{c.section}.{c.qualname}", arguments=arguments, fields=fields, read_types=read_types, diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index f967dfc5..af2c2ce9 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -33,6 +33,6 @@ class ContinuePropagation(StopAsyncIteration): pass -from . import types, filters, handlers, emoji +from . import raw, types, filters, handlers, emoji from .client import Client from .sync import idle diff --git a/pyrogram/raw/core/tl_object.py b/pyrogram/raw/core/tl_object.py index 0391ab85..48b3ec91 100644 --- a/pyrogram/raw/core/tl_object.py +++ b/pyrogram/raw/core/tl_object.py @@ -53,7 +53,7 @@ class TLObject: return dumps(self, indent=4, default=TLObject.default, ensure_ascii=False) def __repr__(self) -> str: - return "pyrogram.api.{}({})".format( + return "pyrogram.raw.{}({})".format( self.QUALNAME, ", ".join( f"{attr}={repr(getattr(self, attr))}"