Make some methods static

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
Alisson Lauffer 2021-04-18 00:25:22 -03:00 committed by wulan17
parent 1cfad73e95
commit 5d5e4b4845
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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