mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
docs: _initial_action docstrings update
This commit is contained in:
parent
8f7baffdd3
commit
ae724f7167
1 changed files with 3 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue