chore: reuse json util #712

This commit is contained in:
Oleg A 2021-09-30 17:58:23 +03:00
parent e5cce6edf8
commit 0425ea378b
3 changed files with 23 additions and 5 deletions

View file

@ -26,7 +26,7 @@ class FakeTelegram(aresponses.ResponsesMockServer):
@staticmethod
def parse_data(message_data):
import json
from aiogram.utils import json
from aiogram.utils.payload import _normalize
_body = '{"ok":true,"result":' + json.dumps(_normalize(message_data)) + '}'