mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 02:19:54 +00:00
Fixed poll answer FSM context (#1436)
* Add voter_chat to poll_answer event handling The change ensures that when a poll_answer event is processed, the user context middleware now also returns the chat where the vote took place. Previously, only the user who cast the vote was returned. * Added changelog * Fixed tests * Bump Python version in test
This commit is contained in:
parent
30cee817f4
commit
0c9eeda8a7
4 changed files with 7 additions and 6 deletions
|
|
@ -61,7 +61,7 @@ class TestDefaultBotProperties:
|
|||
assert default_bot_properties["link_preview_prefer_large_media"] is True
|
||||
assert default_bot_properties["link_preview_show_above_text"] is True
|
||||
|
||||
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher")
|
||||
@pytest.mark.skipif(sys.version_info < (3, 12), reason="requires python3.11 or higher")
|
||||
def test_dataclass_creation_3_10_plus(self):
|
||||
params = DefaultBotProperties.__dataclass_params__
|
||||
assert params.slots is True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue