Relative imports and reformat code (auto)

This commit is contained in:
Alex Root Junior 2017-12-10 02:40:59 +02:00
parent 6a64573e44
commit 0295aed615
8 changed files with 19 additions and 6 deletions

View file

@ -211,7 +211,7 @@ class ChatActions(helper.Helper):
@classmethod
async def _do(cls, action: str, sleep=None):
from aiogram.dispatcher.ctx import get_bot, get_chat
from ..dispatcher.ctx import get_bot, get_chat
await get_bot().send_chat_action(get_chat(), action)
if sleep:
await asyncio.sleep(sleep)