Merge branch 'aiogram:dev-3.x' into dev-3.x

This commit is contained in:
Dmitriy Sergievskiy 2024-06-18 21:26:44 +03:00 committed by GitHub
commit d4e2356be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
341 changed files with 9516 additions and 2019 deletions

View file

@ -1,5 +0,0 @@
- **WebAppUser Class Fields**: Added missing `is_premium`, `added_to_attachment_menu`, and `allows_write_to_pm` fields to `WebAppUser` class to align with the Telegram API.
- **WebAppChat Class Implementation**: Introduced the `WebAppChat` class with all its fields (`id`, `type`, `title`, `username`, and `photo_url`) as specified in the Telegram API, which was previously missing from the library.
- **WebAppInitData Class Fields**: Included previously omitted fields in the `WebAppInitData` class: `chat`, `chat_type`, `chat_instance`, to match the official documentation for a complete Telegram Web Apps support.

View file

@ -1 +0,0 @@
Added WebAppChat class to WebApp docs, updated uk_UA localisation of WebApp docs.

View file

@ -1 +0,0 @@
Fixed poll answer FSM context by handling :code:`voter_chat` for :code:`poll_answer` event

View file

@ -1 +0,0 @@
Added **message_thread_id** parameter to **ChatActionSender** class methods.

1
CHANGES/1500.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Increased DNS cache ttl setting to aiohttp session as a workaround for DNS resolution issues in aiohttp.

1
CHANGES/1501.doc.rst Normal file
View file

@ -0,0 +1 @@
Fixed MongoStorage section in the documentation by adding extra dependency to ReadTheDocs configuration.

1
CHANGES/1504.doc.rst Normal file
View file

@ -0,0 +1 @@
Added information about dependency changes to the :code:`2.x --> 3.x` migration guide.

11
CHANGES/1510.misc.rst Normal file
View file

@ -0,0 +1,11 @@
[Only for contributors] Fail redis and mongo tests if incorrect URI provided + some storages tests refactoring
If incorrect URIs provided to "--redis" and/or "--mongo" options tests should fail with errors instead of skipping.
Otherwise the next scenario is possible:
1) developer breaks RedisStorage and/or MongoStorage code
2) tests are run with incorrect redis and/or mongo URIsprovided by "--redis" and "--mongo" options (for example, wrong port specified)
3) tests pass because skipping doesn't fail tests run
4) developer or reviewer doesn't notice that redis and/or mongo tests were skipped
5) broken code gets in codebase
Also some refactorings done (related with storages and storages tests).