mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Add StopTransmission custom exception
Useful for stopping up/downloads after they started
This commit is contained in:
parent
d5ed47f4e9
commit
c28b9f9a2c
@ -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…
x
Reference in New Issue
Block a user