mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Make some methods static
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
1cfad73e95
commit
5d5e4b4845
2 changed files with 6 additions and 3 deletions
|
|
@ -20,7 +20,8 @@ import pyrogram
|
|||
|
||||
|
||||
class StopTransmission:
|
||||
def stop_transmission(self):
|
||||
@staticmethod
|
||||
def stop_transmission():
|
||||
"""Stop downloading or uploading a file.
|
||||
|
||||
This method must be called inside a progress callback function in order to stop the transmission at the
|
||||
|
|
|
|||
|
|
@ -20,8 +20,10 @@ import pyrogram
|
|||
|
||||
|
||||
class Update:
|
||||
def stop_propagation(self):
|
||||
@staticmethod
|
||||
def stop_propagation():
|
||||
raise pyrogram.StopPropagation
|
||||
|
||||
def continue_propagation(self):
|
||||
@staticmethod
|
||||
def continue_propagation():
|
||||
raise pyrogram.ContinuePropagation
|
||||
|
|
|
|||
Loading…
Reference in a new issue