mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove "context" middleware. Rename "bot" middleware to "environment".
This commit is contained in:
parent
a992f670c1
commit
b2d202bb5d
3 changed files with 7 additions and 118 deletions
|
|
@ -70,9 +70,12 @@ class AbstractConnector(abc.ABC):
|
|||
- The content of the result is invalid JSON.
|
||||
- The method call was unsuccessful (The JSON 'ok' field equals False)
|
||||
|
||||
:raises ApiException: if one of the above listed cases is applicable
|
||||
:param method_name: The name of the method called
|
||||
:return: The result parsed to a JSON dictionary.
|
||||
:param status_code: status code
|
||||
:param content_type: content type of result
|
||||
:param body: result body
|
||||
:return: The result parsed to a JSON dictionary
|
||||
:raises ApiException: if one of the above listed cases is applicable
|
||||
"""
|
||||
log.debug(f"Response for {method_name}: [{status_code}] {body}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue