mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Towncrier build
This commit is contained in:
parent
7efec4a5df
commit
46218b8696
4 changed files with 60 additions and 19 deletions
29
CHANGES.rst
29
CHANGES.rst
|
|
@ -19,6 +19,35 @@ Changelog
|
|||
3.0.0b7 (2023-02-18)
|
||||
=====================
|
||||
|
||||
.. warning::
|
||||
|
||||
Note that this version has incompatibility with Python 3.8-3.10 in case when you create an instance of Dispatcher outside of the any coroutine.
|
||||
|
||||
Sorry for the inconvenience, it will be fixed in the next version.
|
||||
|
||||
This code will not work:
|
||||
|
||||
.. code-block:: python
|
||||
dp = Dispatcher()
|
||||
|
||||
def main():
|
||||
dp.run_polling()
|
||||
|
||||
main()
|
||||
|
||||
But if you change it like this it should works as well:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
router = Router()
|
||||
|
||||
async def main():
|
||||
dp = Dispatcher()
|
||||
dp.include_router(router)
|
||||
|
||||
asyncio.run(main())
|
||||
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue