mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
refactored message_dict to message_data in FakeTelegram
This commit is contained in:
parent
38a2309c32
commit
a5f9373381
3 changed files with 47 additions and 45 deletions
|
|
@ -28,7 +28,7 @@ async def message(bot, event_loop):
|
|||
from .types.dataset import MESSAGE
|
||||
msg = types.Message(**MESSAGE)
|
||||
|
||||
async with FakeTelegram(message_dict=MESSAGE, loop=event_loop):
|
||||
async with FakeTelegram(message_data=MESSAGE, loop=event_loop):
|
||||
_message = await bot.send_message(chat_id=msg.chat.id, text=msg.text)
|
||||
|
||||
yield _message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue