mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Fix circular import.
This commit is contained in:
parent
95f77b1598
commit
7fd9a6cfe8
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
from . import types
|
|
||||||
from .utils import json
|
from .utils import json
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -25,6 +24,7 @@ class TelegramAPIError(Exception):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def parameters(self):
|
def parameters(self):
|
||||||
|
from .types import ResponseParameters
|
||||||
data = self.json()
|
data = self.json()
|
||||||
if data and 'parameters' in data:
|
if data and 'parameters' in data:
|
||||||
return types.ResponseParameters.deserialize(data['parameters'])
|
return ResponseParameters.deserialize(data['parameters'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue