diff --git a/pyrogram/methods/utilities/stop_transmission.py b/pyrogram/methods/utilities/stop_transmission.py index da645695..03b62ba3 100644 --- a/pyrogram/methods/utilities/stop_transmission.py +++ b/pyrogram/methods/utilities/stop_transmission.py @@ -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 diff --git a/pyrogram/types/update.py b/pyrogram/types/update.py index d3e45b4a..a048b0dc 100644 --- a/pyrogram/types/update.py +++ b/pyrogram/types/update.py @@ -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