mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Add StopTransmission custom exception
Useful for stopping up/downloads after they started
This commit is contained in:
parent
d5ed47f4e9
commit
c28b9f9a2c
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ from ...session.internals import MsgId
|
|||
|
||||
|
||||
class BaseClient:
|
||||
class StopTransmission(StopIteration):
|
||||
pass
|
||||
|
||||
APP_VERSION = "Pyrogram \U0001f525 {}".format(__version__)
|
||||
|
||||
DEVICE_MODEL = "{} {}".format(
|
||||
|
|
|
|||
Loading…
Reference in a new issue