diff --git a/tasks/mtproto_task_abstraction.py b/tasks/mtproto_task_abstraction.py index e959671..b5eb43c 100644 --- a/tasks/mtproto_task_abstraction.py +++ b/tasks/mtproto_task_abstraction.py @@ -17,7 +17,13 @@ class MtProtoTask(AsyncTask, abc.ABC): async def _process(self) -> typing.Union[bool, int]: try: - return await self.process() * 1e9 + + result = await self.process() + + if result is False: + return False + + return result * 1e9 except FloodWait as error: return int(error.MESSAGE.split("_")[-1]) * 1e9