mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +00:00
Fix raw API not being properly imported when using repr/eval
Fixes #423
This commit is contained in:
parent
33d04b5916
commit
a18e0242fa
@ -489,7 +489,7 @@ def start(format: bool = False):
|
|||||||
docstring=docstring,
|
docstring=docstring,
|
||||||
slots=slots,
|
slots=slots,
|
||||||
id=c.id,
|
id=c.id,
|
||||||
qualname=f"pyrogram.raw.{c.section}.{c.qualname}",
|
qualname=f"{c.section}.{c.qualname}",
|
||||||
arguments=arguments,
|
arguments=arguments,
|
||||||
fields=fields,
|
fields=fields,
|
||||||
read_types=read_types,
|
read_types=read_types,
|
||||||
|
@ -33,6 +33,6 @@ class ContinuePropagation(StopAsyncIteration):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
from . import types, filters, handlers, emoji
|
from . import raw, types, filters, handlers, emoji
|
||||||
from .client import Client
|
from .client import Client
|
||||||
from .sync import idle
|
from .sync import idle
|
||||||
|
@ -53,7 +53,7 @@ class TLObject:
|
|||||||
return dumps(self, indent=4, default=TLObject.default, ensure_ascii=False)
|
return dumps(self, indent=4, default=TLObject.default, ensure_ascii=False)
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return "pyrogram.api.{}({})".format(
|
return "pyrogram.raw.{}({})".format(
|
||||||
self.QUALNAME,
|
self.QUALNAME,
|
||||||
", ".join(
|
", ".join(
|
||||||
f"{attr}={repr(getattr(self, attr))}"
|
f"{attr}={repr(getattr(self, attr))}"
|
||||||
|
Loading…
Reference in New Issue
Block a user