refactored message_dict to message_data in FakeTelegram

This commit is contained in:
Oleg A 2020-04-05 17:02:43 +03:00
parent 38a2309c32
commit a5f9373381
3 changed files with 47 additions and 45 deletions

View file

@ -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