aiogram/CHANGES/1155.bugfix.rst
Łukasz Tshipenchko 6efef7137c
Resolve #1155: Different signature of startup/shutdown events on polling and webhooks (#1156)
* Code refactor
- Use 'or' istead of 'A if A else B'
- Raise new error from catched error: raise Error from e

* Fixed signature of startup/shutdown events
- Include the **dispatcher.workflow_data as the handler arguments
2023-04-08 17:38:11 +03:00

1 line
111 B
ReStructuredText

Fixed signature of startup/shutdown events to include the **dispatcher.workflow_data as the handler arguments.