mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
add docstring for BaseResponse.method
This commit is contained in:
parent
779f2e73a0
commit
e66194dbf3
1 changed files with 8 additions and 1 deletions
|
|
@ -104,7 +104,14 @@ class BaseResponse:
|
|||
"""
|
||||
Base class for webhook responses.
|
||||
"""
|
||||
method = None
|
||||
@property
|
||||
def method(self) -> str:
|
||||
"""
|
||||
In all subclasses of that class you need to override this property
|
||||
|
||||
:return: str
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def prepare(self) -> typing.Dict:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue