mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
Fix StopTransmission in asyncio by inheriting from StopAsyncIteration
Instead of StopIteration
This commit is contained in:
parent
7f7f9768fd
commit
29940fbc66
@ -26,7 +26,7 @@ from ...session.internals import MsgId
|
|||||||
|
|
||||||
|
|
||||||
class BaseClient:
|
class BaseClient:
|
||||||
class StopTransmission(StopIteration):
|
class StopTransmission(StopAsyncIteration):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
APP_VERSION = "Pyrogram \U0001f525 {}".format(__version__)
|
APP_VERSION = "Pyrogram \U0001f525 {}".format(__version__)
|
||||||
|
Loading…
Reference in New Issue
Block a user