mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Added support for message_thread_id in ChatActionSender (#1250)
* Add support for message_thread_id in ChatActionSender The given changes add support for including the 'message_thread_id' in ChatActionSender function calls, allowing actions to be sent in specific threads rather than the main chat. * Added changelog
This commit is contained in:
parent
b311d59fce
commit
c9f0b36ad6
3 changed files with 18 additions and 2 deletions
|
|
@ -54,7 +54,11 @@ class TestChatActionSender:
|
|||
):
|
||||
await asyncio.sleep(0.1)
|
||||
assert mocked_send_chat_action.await_count > 1
|
||||
mocked_send_chat_action.assert_awaited_with(action="typing", chat_id=42)
|
||||
mocked_send_chat_action.assert_awaited_with(
|
||||
action="typing",
|
||||
chat_id=42,
|
||||
message_thread_id=None,
|
||||
)
|
||||
|
||||
async def test_contextmanager(self, bot: MockedBot):
|
||||
sender: ChatActionSender = ChatActionSender.typing(bot=bot, chat_id=42)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue