mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 04:05:47 +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
|
|
@ -44,14 +44,14 @@ class TestBot:
|
|||
|
||||
def test_init_default(self):
|
||||
with check_deprecated(
|
||||
max_version="3.5.0",
|
||||
max_version="3.7.0",
|
||||
exception=TypeError,
|
||||
):
|
||||
bot = Bot(token="42:Test", parse_mode="HTML")
|
||||
|
||||
def test_deprecated_parse_mode(self):
|
||||
with check_deprecated(
|
||||
max_version="3.5.0",
|
||||
max_version="3.7.0",
|
||||
exception=AttributeError,
|
||||
):
|
||||
bot = Bot(token="42:Test", parse_mode="HTML")
|
||||
|
|
@ -59,7 +59,7 @@ class TestBot:
|
|||
|
||||
def test_disable_web_page_preview(self):
|
||||
with check_deprecated(
|
||||
max_version="3.5.0",
|
||||
max_version="3.7.0",
|
||||
exception=TypeError,
|
||||
):
|
||||
bot = Bot(token="42:Test", disable_web_page_preview=True)
|
||||
|
|
@ -67,7 +67,7 @@ class TestBot:
|
|||
|
||||
def test_deprecated_protect_content(self):
|
||||
with check_deprecated(
|
||||
max_version="3.5.0",
|
||||
max_version="3.7.0",
|
||||
exception=AttributeError,
|
||||
):
|
||||
bot = Bot(token="42:Test", protect_content=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue