mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 14:55:12 +00:00
Fix raw API not being properly imported when using repr/eval
Fixes #423
This commit is contained in:
@@ -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
|
||||
|
@@ -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))}"
|
||||
|
Reference in New Issue
Block a user