From ae724f7167386d3a5e81fe429f5361fc7a81e6b6 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Wed, 21 Sep 2022 11:37:27 +0300 Subject: [PATCH] docs: _initial_action docstrings update --- aiogram/utils/chat_action.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/aiogram/utils/chat_action.py b/aiogram/utils/chat_action.py index cc1931ac..321b181f 100644 --- a/aiogram/utils/chat_action.py +++ b/aiogram/utils/chat_action.py @@ -103,13 +103,9 @@ class ChatActionSender: async def _initial_action(self) -> None: """Process initial action. - If there's no initial sleep, start worker immediately. - - If initial_sleep shorter or equal to interval - call action, - wait and then start worker. - - Otherwise, start loop similar to worker and wait for initial - sleep. + If there's no initial sleep - skip current step. + If initial_sleep shorter or equal to interval - call action once + Otherwise, start worker and wait for initial sleep. """ if not self.initial_sleep: return